Views
No views yet
| Research & Engineering | Product Management |
|---|---|
| David Sohn | David Sohn |
1# Use a pipeline as a high-level helper
2from transformers import pipeline
3
4pipe = pipeline("text-generation", model="msy127/ft-240209-sft")
5
6# Load model directly
7from transformers import AutoTokenizer, AutoModelForCausalLM
8
9tokenizer = AutoTokenizer.from_pretrained("msy127/ft-240209-sft")
10model = AutoModelForCausalLM.from_pretrained("msy127/ft-240209-sft")