LocalCode 是一款专为 Apple Silicon Mac 设计的开源代理式编程工具,用户只需执行一条命令即可在本地运行大模型,完成代码编辑、测试及构建任务 1。该工具旨在通过本地化运行强化数据隐私保护,同时利用推测解码和缓存优化等技术提升推理速度与质量 1。其安装过程简便,仅需使用 uv pip install localcode 指令即可完成配置 1。
在硬件兼容性方面,LocalCode 要求设备搭载 Apple Silicon 芯片、运行 macOS 13 或更高版本系统,并配备至少 16 GB 统一内存 1。软件功能上,它支持从 Hugging Face 平台下载包括 Gemma 4 和 Qwen 3.6 在内的多种模型,目前提供 12 种模型选项及 169 个量化变体 1。为了优化性能,LocalCode 引入了 Drafting 技术以实现约 2 倍的加速,在重写文件场景下通过 Copy drafting 技术可获得 3.5 至 4 倍的速度提升,此外还采用了 8-bit KV 缓存机制 1。
除了核心的本地代理功能,LocalCode 还具备广泛的兼容性,提供了 OpenAI 兼容端点,用户可通过 localcode api 命令调用 1。该项目采用 Apache 2.0 许可证发布,确保了其在开源社区中的自由使用与分发权利 1。
LocalCode, an open source agentic coding tool, has been released to enable developers to run local large language models for code editing, testing, and building directly on their Mac computers. 1 The software is designed for Apple Silicon hardware running macOS 13 or later with at least 16 GB of unified memory. 1 Installation requires only a single command: uv pip install localcode. 1
The tool integrates with Hugging Face to provide access to 12 different models and 169 quantization options, including Gemma 4 and Qwen 3.6. 1 To enhance performance, LocalCode employs specific technical optimizations such as Drafting, which offers approximately 2x acceleration, and Copy drafting, which provides 3.5-4x speedups when rewriting files. 1 Additionally, the system utilizes an 8-bit KV cache to improve inference speed and quality while emphasizing data privacy through fully local execution. 1 For compatibility purposes, the project includes an OpenAI-compatible endpoint accessible via the localcode api command and operates under the Apache 2.0 license. 1
评论
还没有评论,欢迎留下第一条。