---
title: "CodeBERT vs ChatGLM-6B"
type: "comparison"
canonical_url: "https://www.graphcanon.com/compare/microsoft-codebert-vs-zai-org-chatglm-6b"
tools: ["microsoft-codebert", "zai-org-chatglm-6b"]
---

# CodeBERT vs ChatGLM-6B

*GraphCanon updated Jul 11, 2026*

## Verdict

Pick CodeBERT when license: CodeBERT is MIT, ChatGLM-6B is Apache-2.0; pick ChatGLM-6B when license: ChatGLM-6B is Apache-2.0, CodeBERT is MIT.

[CodeBERT](https://github.com/microsoft/CodeBERT) reports 2.8k GitHub stars, 498 forks, and 86 open issues, last pushed Jul 9, 2023. [ChatGLM-6B](https://github.com/zai-org/ChatGLM-6B) has 41k stars, 5.1k forks, and 609 open issues, last pushed Jun 27, 2024. Figures are from public GitHub metadata via [CodeBERT's repository](https://github.com/microsoft/CodeBERT) and [ChatGLM-6B's repository](https://github.com/zai-org/ChatGLM-6B).

| | [CodeBERT](/tools/microsoft-codebert.md) | [ChatGLM-6B](/tools/zai-org-chatglm-6b.md) |
| --- | --- | --- |
| Tagline | CodeBERT | ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型 |
| Stars | 2,785 | 41,035 |
| Forks | 498 | 5,132 |
| Open issues | 86 | 609 |
| Language | Python | Python |
| Adopt for | - | - |
| Persona | - | - |
| Runtime | - | - |
| License | MIT | Apache-2.0 |
| Categories | Data & Retrieval, Model Training, Vector Databases | Data & Retrieval, LLM Frameworks, Vector Databases |

## Trust and health

_Sourced signals - not a safety guarantee. No winner column._

| | [CodeBERT](/tools/microsoft-codebert.md) | [ChatGLM-6B](/tools/zai-org-chatglm-6b.md) |
| --- | --- | --- |
| Days since push | 1098d | 744d |
| Open issues (now) | 86 | 609 |
| Security scan | No lockfile | 75 low (75 low) |
| Full report | [trust report](/tools/microsoft-codebert/trust.md) | [trust report](/tools/zai-org-chatglm-6b/trust.md) |

## Shared compatibility

- **Python**: [CodeBERT](/tools/microsoft-codebert.md) - Python runtime; [ChatGLM-6B](/tools/zai-org-chatglm-6b.md) - Python runtime

## Choose when

### Choose CodeBERT if…

- License: CodeBERT is MIT, ChatGLM-6B is Apache-2.0.
- Also covers Model Training.
- Leaner open-issue backlog (86).

### Choose ChatGLM-6B if…

- License: ChatGLM-6B is Apache-2.0, CodeBERT is MIT.
- Also covers LLM Frameworks.
- More GitHub stars (41k vs 2.8k) - visibility, not fit.

## When NOT to use CodeBERT

- Last GitHub push was 1098 days ago (dormant maintenance, Jul 9, 2023). Validate activity before betting a new project on CodeBERT.
- Data & Retrieval: Skip a heavy ingestion framework when your corpus is small and static; a script plus the embedding API is enough.
- Model Training: Try prompting and RAG first; fine-tuning is the answer to style/format, not missing knowledge.
- Vector Databases: Don't reach for a dedicated vector DB under ~100k vectors; pgvector on your existing Postgres is simpler to operate.

## When NOT to use ChatGLM-6B

- Last GitHub push was 745 days ago (dormant maintenance, Jun 27, 2024). Validate activity before betting a new project on ChatGLM-6B.
- Data & Retrieval: Skip a heavy ingestion framework when your corpus is small and static; a script plus the embedding API is enough.
- LLM Frameworks: Avoid a framework for a single prompt-and-retrieve call; the abstraction can cost more than it saves.
- Vector Databases: Don't reach for a dedicated vector DB under ~100k vectors; pgvector on your existing Postgres is simpler to operate.

## Common questions

### What is the difference between CodeBERT and ChatGLM-6B?

CodeBERT: CodeBERT. ChatGLM-6B: ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型. See the comparison table for live GitHub stats and shared categories.

### When should I choose CodeBERT over ChatGLM-6B?

Choose CodeBERT over ChatGLM-6B when License: CodeBERT is MIT, ChatGLM-6B is Apache-2.0; Also covers Model Training; Leaner open-issue backlog (86).

### When should I choose ChatGLM-6B over CodeBERT?

Choose ChatGLM-6B over CodeBERT when License: ChatGLM-6B is Apache-2.0, CodeBERT is MIT; Also covers LLM Frameworks; More GitHub stars (41k vs 2.8k) - visibility, not fit.

### When should I avoid CodeBERT?

Last GitHub push was 1098 days ago (dormant maintenance, Jul 9, 2023). Validate activity before betting a new project on CodeBERT. Data & Retrieval: Skip a heavy ingestion framework when your corpus is small and static; a script plus the embedding API is enough. Model Training: Try prompting and RAG first; fine-tuning is the answer to style/format, not missing knowledge. Vector Databases: Don't reach for a dedicated vector DB under ~100k vectors; pgvector on your existing Postgres is simpler to operate.

### When should I avoid ChatGLM-6B?

Last GitHub push was 745 days ago (dormant maintenance, Jun 27, 2024). Validate activity before betting a new project on ChatGLM-6B. Data & Retrieval: Skip a heavy ingestion framework when your corpus is small and static; a script plus the embedding API is enough. LLM Frameworks: Avoid a framework for a single prompt-and-retrieve call; the abstraction can cost more than it saves. Vector Databases: Don't reach for a dedicated vector DB under ~100k vectors; pgvector on your existing Postgres is simpler to operate.

### Is CodeBERT or ChatGLM-6B more popular on GitHub?

ChatGLM-6B has more GitHub stars (41,035 vs 2,785). Stars measure visibility, not whether either tool fits your constraints.

### Are CodeBERT and ChatGLM-6B open source?

Yes - both are open-source projects on GitHub (CodeBERT: MIT, ChatGLM-6B: Apache-2.0).

### Where can I find alternatives to CodeBERT or ChatGLM-6B?

GraphCanon lists graph-backed alternatives at [CodeBERT alternatives](/tools/microsoft-codebert/alternatives) and [ChatGLM-6B alternatives](/tools/zai-org-chatglm-6b/alternatives) ([CodeBERT markdown twin](/tools/microsoft-codebert/alternatives.md), [ChatGLM-6B markdown twin](/tools/zai-org-chatglm-6b/alternatives.md)), ranked by typed relationship edges rather than popularity votes.

### Is there a machine-readable version of this comparison?

Yes. The markdown twin at [this comparison](/compare/microsoft-codebert-vs-zai-org-chatglm-6b.md) mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.

### Which is better maintained, CodeBERT or ChatGLM-6B?

CodeBERT: Dormant. ChatGLM-6B: Dormant. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.

### Where are the full trust reports for CodeBERT and ChatGLM-6B?

GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: [CodeBERT trust report](/tools/microsoft-codebert/trust); [ChatGLM-6B trust report](/tools/zai-org-chatglm-6b/trust).

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/graph?tool=microsoft-codebert`](/api/graphcanon/graph?tool=microsoft-codebert)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
