CoolFace
Modelpublic

npc0/chatglm3-6b-32k-int4

sourceHugging Faceupdated 3y agoView on Hugging Face
1likes
Model Card

ChatGLM3-6B-32k-int4

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

ChatGLM.CPP 基於 GGML quantize 生成 Q40、Q41 權重 weights 儲存於此倉庫。

Performance

ModelGGML quantize methodHDD size
chatglm3-32k-ggml-q4_0.binq4_03.51 GB
chatglm3-32k-ggml-q4_1.binq4_13.9 GB

Getting Started

  1. 1.Install dependency
sh
  pip install chatglm-cpp transformers
  1. 1.Download weight
sh
  wget https://huggingface.co/npc0/chatglm3-6b-32k-int4/resolve/main/chatglm3-32k-ggml-q4_0.bin
  1. 1.Code
py
  import chatglm_cpp

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