Downloads · 30 days
34
7% of all-time downloads
Zane666/ruozhi-Llamma3-8b-unsloth-q4
ruozhi-Llamma3-8b-unsloth-q4 is a machine learning model from Zane666. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model is a fine-tuned version of Llama 3 8B Instruct, quantized to 4-bit, using the Chinese datasets YeungNLP/firefly-train-1.1M and LooksJuicy/ruozhiba.
Downloads · 30 days
34
7% of all-time downloads
All-time downloads
484
Public
Repo size
4.9 GB
Likes
2
Public
Click a slice to open those files.
.gguf4.9 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Llama 3 8B Instruct, quantized to 4-bit, using the Chinese datasets YeungNLP/firefly-train-1.1M and LooksJuicy/ruozhiba.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "your-username/llama-3-8b-instruct-4bit-chinese"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
input_text = "请输入您的中文文本"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(inputs.input_ids, max_length=50)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)