摘要: how to cook https://github.com/Anduin2017/HowToCook/tree/master 阅读全文
posted @ 2025-02-10 19:39 michaelchengjl 阅读(64) 评论(0) 推荐(0)
摘要: python3 globals() 函数 globals().items() 是 Python 中一个非常有用的内置函数组合,用于获取当前全局命名空间中的所有变量和它们的值。 基本用法 # 定义一些全局变量 x = 10 y = "hello" z = [1, 2, 3] def my_func() 阅读全文
posted @ 2025-12-12 17:26 michaelchengjl 阅读(5) 评论(0) 推荐(0)
摘要: NumPy memmap 内存映射 使用详解 一、memmap 核心概念 1.1 什么是内存映射文件? 内存映射文件将磁盘文件直接映射到进程的虚拟内存空间,使得文件可以像内存数组一样被访问。 1.2 工作原理 磁盘文件 ↔ 虚拟内存 ↔ 程序访问 ↑ ↑ --物理磁盘 物理内存(按需加载) 二、创建 阅读全文
posted @ 2025-12-12 15:55 michaelchengjl 阅读(1) 评论(0) 推荐(0)
摘要: 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 阅读(1) 评论(0) 推荐(0)
摘要: 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 阅读(2) 评论(0) 推荐(0)
摘要: C/C++ 实现内存映射 权重采用内存映射方式加载,避免了大规模内存拷贝,特别适合大模型部署。 在C语言中实现内存映射主要使用mmap()系统调用。以下是一个完整的示例,展示如何使用内存映射进行文件读写: 完整的内存映射工具函数 #include <stdio.h> #include <stdlib 阅读全文
posted @ 2025-12-10 10:10 michaelchengjl 阅读(11) 评论(0) 推荐(0)
摘要: RISC-V Linux QEMU编译安装 qemu-system-riscv64 构建 https://blog.csdn.net/flyfish1986/article/details/130004913 https://cloud.tencent.com/developer/article/1 阅读全文
posted @ 2025-11-30 19:38 michaelchengjl 阅读(6) 评论(0) 推荐(0)
摘要: 使用llama.cpp量化部署LLM https://blog.csdn.net/qq_38342510/article/details/138454792?spm=1001.2014.3001.5502 阅读全文
posted @ 2025-11-26 14:51 michaelchengjl 阅读(3) 评论(0) 推荐(0)
摘要: ld.lld: error: undefined symbol: _impure_ptr 出现该问题解决办法 解决方案命令 方法1:显式链接newlib gcc -specs=nosys.specs your_source.c -o output 方法2:使用完整newlib gcc --specs 阅读全文
posted @ 2025-11-13 15:26 michaelchengjl 阅读(9) 评论(0) 推荐(0)
摘要: ubuntu 安装使用 qemu https://blog.csdn.net/weixin_50923296/article/details/125275427 https://blog.csdn.net/qq_34160841/article/details/104891169 https://z 阅读全文
posted @ 2025-11-10 15:38 michaelchengjl 阅读(8) 评论(0) 推荐(0)
摘要: LLVM intrinsic https://chuna2.787528.xyz/wujianming-110117/p/16508427.html https://fprox.substack.com/p/risc-v-vector-in-a-nutshell https://blog.csdn.ne 阅读全文
posted @ 2025-10-16 17:25 michaelchengjl 阅读(8) 评论(0) 推荐(0)