Instructions to use sharpbai/chatglm2-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sharpbai/chatglm2-6b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="sharpbai/chatglm2-6b", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sharpbai/chatglm2-6b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"auto_map": {
|
| 3 |
"AutoTokenizer": [
|
| 4 |
-
"
|
| 5 |
null
|
| 6 |
]
|
| 7 |
},
|
|
|
|
| 1 |
{
|
| 2 |
"auto_map": {
|
| 3 |
"AutoTokenizer": [
|
| 4 |
+
"tokenization_chatglm.ChatGLMTokenizer",
|
| 5 |
null
|
| 6 |
]
|
| 7 |
},
|