Scripts2026年5月30日·1 分钟阅读

CodeGeeX — Open Multilingual Code Generation Model

An open-source AI model for code generation, completion, and translation across 20+ programming languages, with IDE extensions for VS Code and JetBrains.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
CodeGeeX
直接安装命令
npx -y tokrepo@latest install b834bb26-5bdf-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

CodeGeeX is an open-source multilingual code generation model developed by Zhipu AI and Tsinghua University. It supports code completion, generation, translation, and explanation across more than 20 programming languages, and integrates into popular IDEs as a free coding assistant.

What CodeGeeX Does

  • Generates code from natural language descriptions in 20+ languages
  • Provides inline code completion suggestions in real time
  • Translates code between programming languages automatically
  • Explains code snippets in natural language for documentation
  • Runs locally or via API for privacy-sensitive environments

Architecture Overview

CodeGeeX is a large-scale transformer model trained on a diverse corpus of open-source code. The model uses a decoder-only architecture optimized for code token prediction. It supports FP16 and INT4 quantization for local deployment on consumer GPUs, and the inference pipeline integrates with Hugging Face Transformers for straightforward self-hosting.

Self-Hosting & Configuration

  • Download model weights from Hugging Face or the official repository
  • Use INT4 quantization to run on GPUs with 6 GB or more VRAM
  • Deploy as a local API server using the provided FastAPI wrapper
  • Install the VS Code or JetBrains extension and point it to your local endpoint
  • Configure language preferences and completion trigger behavior in extension settings

Key Features

  • Fully open-source model weights and training code
  • IDE plugins for VS Code and JetBrains with streaming completions
  • Cross-lingual code translation between Python, Java, C++, Go, and more
  • Privacy-first local deployment without sending code to external servers
  • Chat mode for interactive code Q&A and debugging

Comparison with Similar Tools

  • GitHub Copilot — more polished UX but proprietary and subscription-based
  • StarCoder — strong open model but lacks integrated IDE plugins
  • Codeium — free tier available but closed-source model
  • Tabby — self-hosted completion server with pluggable models
  • Continue — open-source IDE extension that supports multiple backends

FAQ

Q: Which languages does CodeGeeX support best? A: Python, Java, JavaScript, C++, Go, and Rust have the strongest performance due to training data distribution.

Q: Can I fine-tune CodeGeeX on my own codebase? A: Yes. The training code and data pipeline are open-source, allowing LoRA or full fine-tuning on private repositories.

Q: What hardware do I need to run it locally? A: The INT4 quantized version runs on a single GPU with 6 GB VRAM. Full precision requires 24 GB or more.

Q: Is CodeGeeX free for commercial use? A: Yes. The model is released under the Apache 2.0 license, permitting commercial use without restrictions.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产