Downloads · 30 days
7
10% of all-time downloads
xinping/Mixtral-instruction-v0.1_zh-nf4
Mixtral-instruction-v0.1_zh-nf4 is a text generation model from xinping. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
7
10% of all-time downloads
All-time downloads
69
Public
Parameters
48.2B
24.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors24.5 GB · 100%
How the weights are stored.
U847.9B · 99%
From the Hugging Face model README
Run the model
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig, TextStreamer
model_id = "xinping/Mixtral-instruction-zh_V0.1-nf4"
model = AutoModelForCausalLM.from_pretrained(model_id, device_map='auto')
tokenizer = AutoTokenizer.from_pretrained(model_id)
streamer = TextStreamer(tokenizer,skip_prompt=True, skip_special_tokens=True)
text = "今天是星期五,后天是星期几?"
print(text)
model_input = tokenizer(text, return_tensors="pt").to("cuda")
result = model.generate(**model_input,streamer=streamer, max_new_tokens=2048, repetition_penalty=1.15)
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]