Downloads · 30 days
12
3% of all-time downloads
Khanhaimodel/Khanhmodel0-7.1
Khanhmodel0-7.1 is a text generation model from Khanhaimodel. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Mô hình được phát triển và quản lý bởi Khanhaimodel.
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
373
Public
Parameters
494M
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2 GB · 99%
From the Hugging Face model README
Mô hình được phát triển và quản lý bởi Khanhaimodel.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Khanhaimodel/Khanhmodel0-7.1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Xin chào!"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))