基于chatglm3 sft 简单模型 74f101b
john.zhang commited on
How to use askyer/chatglm3-ft1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="askyer/chatglm3-ft1", trust_remote_code=True) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("askyer/chatglm3-ft1", trust_remote_code=True, device_map="auto")