LibreAI / Lokale LLMs / ChatGLM2-6B
// local-llm · zai-org/ChatGLM2-6B

ChatGLM2-6B

ChatGLM2-6B ist ein Open-Source-Projekt aus der Kategorie Lokale LLMs von zai-org (zai-org/ChatGLM2-6B auf GitHub). Es hat 15.501 Sterne auf GitHub und 1.780 Forks, wird unter der Lizenz Apache-2.0 veröffentlicht und wurde zuletzt am 27. Juni 2024 auf GitHub aktualisiert.

Open bilingual (Chinese-English) 6B chat LLM with 32K-context variant and low-memory INT4 inference.

★ 15,5 Tsd. Sterne⑂ 1,8 Tsd. ForksApache-2.0aktualisiert Jun 2024
▦ Visual — das README dieses Projekts enthält keinen einbettbaren Screenshot,
darum hier ein Platzhalter. Die Anleitung unten ist trotzdem vollständig.
// projektdaten

Projektdaten

GitHub-Sterne
15.501
Forks
1.780
Lizenz
Apache-2.0
Zuletzt auf GitHub aktualisiert
27. Juni 2024
Kategorie
Lokale LLMs
Eintragstyp
Vollständige Installationsanleitung
// so funktioniert es

So funktioniert es

  1. Check the fit and the newer option

    ChatGLM2-6B suits bilingual chat on modest hardware; if you need the strongest current model, the README points to the GLM-4 open series instead.

  2. Clone the model repo

    Get the code, demos and requirements file from GitHub; the weights are downloaded from Hugging Face (THUDM/chatglm2-6b).

  3. Install dependencies

    Install the Python requirements, plus FastAPI and Uvicorn if you want the API demos.

  4. Run a demo

    Start the CLI or web demo for a first conversation, or the API server to integrate the model into your own app.

// funktionen

Warum es so beliebt ist

Bilingual chat model

Trained for Chinese and English dialogue, with a smooth chat experience and a low deployment threshold inherited from the first ChatGLM.

Longer 32K context

FlashAttention-based training extends the base context from 2K to 32K, and a separate ChatGLM2-6B-32K variant targets long-text understanding.

Efficient inference

Multi-Query Attention gives faster inference and lower memory use than the first generation - the README reports a 42% speed-up in the official implementation.

INT4 quantization

Runs quantized in as little as about 6GB of GPU memory, with the supported conversation length at INT4 raised from 1K to 8K tokens.

CLI, web and API demos

The repo includes cli_demo.py, web_demo.py, an api.py FastAPI server and an OpenAI-compatible API demo.

Multi-GPU loading

Supports splitting the model across several smaller GPUs with Accelerate when no single card can hold it.

Advertisement
// selbst ausführen

Führe es selbst aus

  1. Clone the repository

    Clone the ChatGLM2-6B code and demo scripts.

    git clone https://github.com/zai-org/ChatGLM2-6B.git
    cd ChatGLM2-6B
  2. Install dependencies

    Install the Python requirements from the repo.

    pip install -r requirements.txt
  3. Run the CLI demo

    Start a terminal conversation with the model (weights download from Hugging Face on first load).

    python cli_demo.py
// anwendungsfälle

Was du damit bauen kannst

Advertisement
// häufige fragen

Häufige Fragen

Who maintains ChatGLM2-6B?

The repo is under zai-org, from the team behind the GLM model family (Zhipu AI and Tsinghua KEG). The README now directs users to the newer GLM-4 open models.

Is it free to use?

The code is Apache-2.0. The weights are free for academic research, and free for commercial use after completing the project's registration form, under its Model License.

Does it need a paid API key?

No. You download the open weights and run them on your own hardware.

How does it compare with newer open chat models?

It was a leading 6B bilingual model of its generation, but newer models such as the GLM-4 series and current Qwen releases are stronger; ChatGLM2-6B remains attractive for its small footprint and bilingual tuning.

How do I get started?

Clone the repo, run pip install -r requirements.txt, then python cli_demo.py or python web_demo.py for the browser UI.

// weiter entdecken

Ähnliche Tools

Lokale LLMs

airllm

Run a 70B LLM on a single 4GB GPU — layer-by-layer inference with almost no memory tricks skipped

★ 35,5 Tsd. SterneApache-2.0
Anleitung ansehen →
Lokale LLMs

can-i-finetune-this

Check if your GPU can fine-tune an LLM — memory estimates and LoRA recipes.

★ 792 SterneMIT
Anleitung ansehen →
Lokale LLMs

Strata

Strata — one-click Qwen3.8-Flash-Next inference on consumer hardware: chat, code and images, locally, no account, MIT

★ 33,3 Tsd. SterneMIT
Anleitung ansehen →
Lokale LLMs

omlx

A fast LLM inference server for Apple Silicon, managed from the macOS menu bar

★ 22,6 Tsd. SterneApache-2.0
Anleitung ansehen →
Lokale LLMs

gemma

Google DeepMind's Gemma open-weight LLM library — install, load and chat with Gemma models in Python.

★ 5,8 Tsd. SterneApache-2.0
Anleitung ansehen →
Lokale LLMs

TokenSpeed

TokenSpeed — a speed-of-light LLM inference engine designed for agentic workloads, with TensorRT-LLM-level performance and vLLM-level usability

★ 2,5 Tsd. SterneMIT
Anleitung ansehen →
// alternativen

Alternativen im Bereich Lokale LLMs

Die anderen Projekte der Kategorie Lokale LLMs mit den meisten Sternen im LibreAI-Katalog — die realistische Auswahl, falls ChatGLM2-6B nicht das Richtige ist.

// mehr in local-llm

Mehr in Lokale LLMs

Verwandte Projekte der Kategorie Lokale LLMs im Katalog, die ChatGLM2-6B bei den Sternen am nächsten stehen — zum Weiterstöbern auf beiden Seiten.

Hol dir ChatGLM2-6B

Kostenlos und offen — hol dir den Quellcode, gib dem Repository einen Stern und leg los.