npcpy
npcpy是一个面向AI Agent开发的开源框架,旨在帮助开发者构建和管理基于大语言模型的智能代理应用。该框架采用分层解耦架构设计,将不同功能模块分离,以提升系统的可维护性与扩展性,适用于需要多智能体协作或复杂任务编排的场景。
All Facts (13)
npcpy已开源,可通过pip install npcpy --upgrade安装
95%Unverifiednpcpy的NPC层将人格定义、行为指令和能力接口设计为可插拔模块
90%Unverifiednpcpy兼容Ubuntu生产环境、Mac Apple Silicon和Windows WSL
85%Unverifiednpcpy深度适配Apple Silicon,在MLX架构下运行LoRA,rank拉到128,配合Flash Attention 2.0
80%Unverifiednpcpy's model fine-tuning uses DPO with a Beta of 0.1 and migrated Llama 3's academic style using SFT for scientific writing scenarios.
80%Unverifiednpcpy's adversarial collaboration (iterative game) mechanism improved the resolution rate of complex problems by 42%.
60%Unverifiednpcpy's NPC Array implements vectorized parallel inference with reference to the SIMD approach, enabling the parallel processing of inference tasks for hundreds of agents.
60%Unverifiednpcpy supports model adaptation ranging from local Ollama to cloud-based OpenAI, Anthropic, and DeepSeek.
60%Unverifiednpcpy's Tool layer connects to external interfaces via the MCP protocol and supports services such as Stable Diffusion and Hugging Face.
60%Unverifiednpcpy adopts a four-layer architecture design of NPC, Context, Agent, and Tool.
60%UnverifiedIn npcpy's C-Memolution population evolution mechanism, the best individual fitness reached 91.5% and the diversity index was 0.62.
55%Unverifiednpcpy's sleep mechanism achieves a redundancy pruning rate of 78%.
55%Unverifiednpcpy's dream mechanism achieved a speculative connection point breakthrough of 182%.
50%