Downloads · 30 days
4
9% of all-time downloads
snowfly/Llama-3-8B-QLoRA-ruozhiba
Llama-3-8B-QLoRA-ruozhiba is a text generation model from snowfly. Use it when you need the model to write or continue text. It is set up for transformers.
- 显卡:T4 - 模型:Llama3-8B - 数据集:LooksJuicy/ruozhiba - 微调方法:QLoRA
Downloads · 30 days
4
9% of all-time downloads
All-time downloads
46
Public
Parameters
8.1B
6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6 GB · 100%
How the weights are stored.
U87B · 86%
From the Hugging Face model README
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "snowfly/Llama-3-8B-QLoRA-ruozhiba"
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
text = "### Human:如何写代码? ### Assistant:"
device = "cuda:0"
inputs = tokenizer(text, return_tensors="pt").to(device)
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))