Instructions to use aolei/llm-chatglm2-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aolei/llm-chatglm2-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="aolei/llm-chatglm2-ft", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("aolei/llm-chatglm2-ft", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("aolei/llm-chatglm2-ft", trust_remote_code=True)
tokenizer.padding_side='left'
model = AutoModel.from_pretrained("LLaMA-Efficient-Tuning/t1_export", trust_remote_code=True).half().cuda()
model = model.eval()
response, history = model.chat(tokenizer, "给我一个折线图", history=[])
print(response, history)
- Downloads last month
- 4
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support