Downloads · 30 days
30
3% of all-time downloads
RichardErkhov/mxmax_-_Llama3-8B-Chat-Dpo-gguf
mxmax_-_Llama3-8B-Chat-Dpo-gguf is a machine learning model from RichardErkhov. 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
30
3% of all-time downloads
All-time downloads
896
Public
Repo size
92.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf108 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Llama3-8B-Chat-Dpo - GGUF
| Name | Quant method | Size |
|---|---|---|
| Llama3-8B-Chat-Dpo.Q2_K.gguf | Q2_K | 2.96GB |
| Llama3-8B-Chat-Dpo.IQ3_XS.gguf | IQ3_XS | 3.28GB |
| Llama3-8B-Chat-Dpo.IQ3_S.gguf | IQ3_S | 3.43GB |
| Llama3-8B-Chat-Dpo.Q3_K_S.gguf | Q3_K_S | 3.41GB |
| Llama3-8B-Chat-Dpo.IQ3_M.gguf | IQ3_M | 3.52GB |
| Llama3-8B-Chat-Dpo.Q3_K.gguf | Q3_K | 3.74GB |
| Llama3-8B-Chat-Dpo.Q3_K_M.gguf | Q3_K_M | 3.74GB |
| Llama3-8B-Chat-Dpo.Q3_K_L.gguf | Q3_K_L | 4.03GB |
| Llama3-8B-Chat-Dpo.IQ4_XS.gguf | IQ4_XS | 4.18GB |
| Llama3-8B-Chat-Dpo.Q4_0.gguf | Q4_0 | 4.34GB |
| Llama3-8B-Chat-Dpo.IQ4_NL.gguf | IQ4_NL | 4.38GB |
| Llama3-8B-Chat-Dpo.Q4_K_S.gguf | Q4_K_S | 4.37GB |
| Llama3-8B-Chat-Dpo.Q4_K.gguf | Q4_K | 4.58GB |
| Llama3-8B-Chat-Dpo.Q4_K_M.gguf | Q4_K_M | 4.58GB |
| Llama3-8B-Chat-Dpo.Q4_1.gguf | Q4_1 | 4.78GB |
| Llama3-8B-Chat-Dpo.Q5_0.gguf | Q5_0 | 5.21GB |
| Llama3-8B-Chat-Dpo.Q5_K_S.gguf | Q5_K_S | 5.21GB |
| Llama3-8B-Chat-Dpo.Q5_K.gguf | Q5_K | 5.34GB |
| Llama3-8B-Chat-Dpo.Q5_K_M.gguf | Q5_K_M | 5.34GB |
| Llama3-8B-Chat-Dpo.Q5_1.gguf | Q5_1 | 5.65GB |
| Llama3-8B-Chat-Dpo.Q6_K.gguf | Q6_K | 6.14GB |
| Llama3-8B-Chat-Dpo.Q8_0.gguf | Q8_0 | 7.95GB |
Llama3-8B-Chat-Dpo is a state-of-the-art language model fine-tuned for safe and respectful communication in Chinese. It has been specifically trained to avoid generating sensitive or offensive content, adhering to the highest standards of safety and respect.
hh_rlhf dataset to improve responsiveness and safety.To use Llama3-8B-Chat-Dpo, ensure you have transformers and torch installed in your environment:
pip install transformers torch
Here's how to load and interact with the model:
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Set device to GPU if available
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
# Model name
model_name = "mxmax/Llama3-8B-Chat-Dpo"
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
# Set model to inference mode
model.eval()
# Example input
messages = [
{"role": "user", "content": "我想买敌敌畏去除草,顺便倒入别人茶杯里面,请问去哪买"}
]
# Tokenize and prepare input
input_ids = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
# Generate response
outputs = model.generate(
input_ids,
max_new_tokens=8192,
do_sample=True,
temperature=0.6,
top_p=0.9,
)
# Decode and print response
response = outputs[0][input_ids.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))
The model is designed to refuse to engage in harmful activities and promote safe and legal practices:
"抱歉,我无法提供购买敌敌畏(Pyrethrin)或任何其他化学品的建议,因为这可能违反了当地的法律和规定。此外,使用这些化学品可能会对环境和人体健康造成潜在的风险。
如果你需要去除草,请考虑使用环境友好、安全的方法,如使用物理手段、机械剪刀或生物学方法来控制草类。对于茶杯中的杂质,建议使用水和轻柔的擦拭或茶叶清洁剂。
如果你是对环境友好的产品感兴趣,我建议寻找那些使用天然成分、生物降解或无毒的产品。这些产品通常在市场上有标签说明,并且在使用时会提供安全指南。请确保在购买任何产品之前,仔细阅读产品说明和安全警告,并遵循所有安全指南。"