File size: 1,124 Bytes
76c03a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cdd7907
76c03a4
 
 
 
 
 
 
 
 
40ae321
76c03a4
 
 
 
 
 
 
b61ad27
 
76c03a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
language:
- zh
- en
tags:
- glm
- chatglm
- ggml
---
# ChatGLM3-6B-32k-fp16

介绍 (Introduction)
ChatGLM3-6B-32k 是 ChatGLM 系列最新一代的开源模型,[THUDM/chatglm3-6b](https://github.com/THUDM/ChatGLM3)

用 [ChatGLM.CPP](https://github.com/li-plus/chatglm.cpp) 基於 GGML quantize 生成 f16 權重 weights 儲存於此倉庫。

## Performance
|Model                     |GGML quantize method| HDD size |
|--------------------------|--------------------|----------|
|chatglm3-32k-ggml-q4_0.bin|        f16         |  12.5 GB |

## Getting Started
1. Install dependency
  ```sh
  pip install chatglm-cpp transformers
  ```

2. Download weight
  ```sh
  wget https://huggingface.co/npc0/chatglm3-6b-32k-fp16/resolve/main/chatglm3-32k-ggml-f16.bin
  ```

3. Code
  ```py
  import chatglm_cpp

  pipeline = chatglm_cpp.Pipeline("./chatglm3-32k-ggml-f16.bin")
  pipeline.chat([chatglm_cpp.ChatMessage(role="user", content="你好")])
  # Output: ChatMessage(role="assistant", content="你好👋!我是人工智能助手 ChatGLM-6B,很高兴见到你,欢迎问我任何问题。", tool_calls=[])
  ```