Upload tokenization_chatglm.py with huggingface_hub a5a2214 verified
zxl commited on
How to use Lie24/FuLinNa_GLM4-9B-Chat with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="Lie24/FuLinNa_GLM4-9B-Chat", trust_remote_code=True) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Lie24/FuLinNa_GLM4-9B-Chat", trust_remote_code=True, device_map="auto")