会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
michaelchengjl
博客园
首页
新随笔
联系
订阅
管理
[置顶]
how to cook
摘要: how to cook https://github.com/Anduin2017/HowToCook/tree/master
阅读全文
posted @ 2025-02-10 19:39 michaelchengjl
阅读(89)
评论(0)
推荐(0)
2026年6月11日
高性能的 Python 代码格式化工具 Ruff
摘要: 高性能的 Python 代码格式化工具 Ruff Ruff 工具详解 1. Ruff 是什么 Ruff 是一个面向 Python 生态的高性能代码质量工具,由 Rust 编写。它的核心目标是用极快的速度提供 Python 静态检查、代码格式 化以及部分自动修复能力,从而替代或整合多个传统工具的职责。
阅读全文
posted @ 2026-06-11 14:42 michaelchengjl
阅读(40)
评论(0)
推荐(0)
2026年5月25日
国内使用Codex & Codex CLI
摘要: 国内使用Codex & Codex CLI https://zhuanlan.zhihu.com/p/1972655407605520311 https://www.runoob.com/codex/codex-cli.html https://help.apiyi.com/codex-cli-be
阅读全文
posted @ 2026-05-25 11:13 michaelchengjl
阅读(16)
评论(0)
推荐(0)
2026年3月2日
FlashAttention-3 vs 朴素(基础)Attention:推理场景详细对比(FA3)
摘要: FlashAttention-3 vs 朴素(基础)Attention:推理场景详细对比(FA3) 讨论对象:FlashAttention-3(FA3)推理 与 基础 scaled dot-product attention(SDPA / naive attention)推理 结论概览:两者在数学定
阅读全文
posted @ 2026-03-02 17:03 michaelchengjl
阅读(106)
评论(0)
推荐(0)
2026年2月24日
wsl 网络相关问题
摘要: wsl 网络相关问题 https://learn.microsoft.com/zh-cn/windows/wsl/networking https://gist.github.com/libChan/3a804a46b532cc326a2ee55b27e8ac19?permalink_comment
阅读全文
posted @ 2026-02-24 17:06 michaelchengjl
阅读(10)
评论(0)
推荐(0)
2025年12月24日
基于LLVM的riscv裸机工具链编译
摘要: 基于LLVM的riscv裸机工具链编译 https://blog.csdn.net/2301_80102764/article/details/152815239 https://blog.csdn.net/amy_mhd/article/details/151029722 https://hwco
阅读全文
posted @ 2025-12-24 15:12 michaelchengjl
阅读(12)
评论(0)
推荐(0)
2025年12月12日
python3 globals() 函数
摘要: python3 globals() 函数 globals().items() 是 Python 中一个非常有用的内置函数组合,用于获取当前全局命名空间中的所有变量和它们的值。 基本用法 # 定义一些全局变量 x = 10 y = "hello" z = [1, 2, 3] def my_func()
阅读全文
posted @ 2025-12-12 17:26 michaelchengjl
阅读(33)
评论(0)
推荐(0)
NumPy memmap 内存映射 使用详解
摘要: NumPy memmap 内存映射 使用详解 一、memmap 核心概念 1.1 什么是内存映射文件? 内存映射文件将磁盘文件直接映射到进程的虚拟内存空间,使得文件可以像内存数组一样被访问。 1.2 工作原理 磁盘文件 ↔ 虚拟内存 ↔ 程序访问 ↑ ↑ --物理磁盘 物理内存(按需加载) 二、创建
阅读全文
posted @ 2025-12-12 15:55 michaelchengjl
阅读(347)
评论(0)
推荐(0)
2025年12月10日
python3 argparse 参数解析模块
摘要: python3 argparse 参数解析模块 https://docs.python.org/zh-cn/3.11/library/argparse.html https://blog.csdn.net/qq_46450354/article/details/126805457 https://b
阅读全文
posted @ 2025-12-10 16:04 michaelchengjl
阅读(8)
评论(0)
推荐(0)
Python中struct.pack()和struct.unpack()用法
摘要: Python中struct.pack()和struct.unpack()用法 https://docs.python.org/zh-cn/3/library/struct.html https://cloud.tencent.com/developer/article/1406350 https:/
阅读全文
posted @ 2025-12-10 15:29 michaelchengjl
阅读(27)
评论(0)
推荐(0)
C/C++ 实现内存映射
摘要: C/C++ 实现内存映射 权重采用内存映射方式加载,避免了大规模内存拷贝,特别适合大模型部署。 在C语言中实现内存映射主要使用mmap()系统调用。以下是一个完整的示例,展示如何使用内存映射进行文件读写: 完整的内存映射工具函数 #include <stdio.h> #include <stdlib
阅读全文
posted @ 2025-12-10 10:10 michaelchengjl
阅读(153)
评论(0)
推荐(0)
下一页
公告