Instructions to use darrel999/SQL_baichuan2_7b_chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use darrel999/SQL_baichuan2_7b_chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="darrel999/SQL_baichuan2_7b_chat", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("darrel999/SQL_baichuan2_7b_chat", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 285 Bytes
34a50bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"assistant_token_id": 196,
"bos_token_id": 1,
"do_sample": true,
"eos_token_id": 2,
"max_new_tokens": 2048,
"pad_token_id": 0,
"repetition_penalty": 1.05,
"temperature": 0.3,
"top_k": 5,
"top_p": 0.85,
"transformers_version": "4.31.0",
"user_token_id": 195
}
|