Downloads · 30 days
0
AesopX/123
123 is a machine learning model from AesopX. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Jul 2, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 76%
From the Hugging Face model README
from transformers import pipeline
messages = [ {"role": "user", "content": "Who are you?"}, ] pipe = pipeline("text-generation", model="shenzhi-wang/Llama3-8B-Chinese-Chat") pipe(messages)
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("shenzhi-wang/Llama3-8B-Chinese-Chat") model = AutoModelForCausalLM.from_pretrained("shenzhi-wang/Llama3-8B-Chinese-Chat")