Views
No views yet
| 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.Llama3-8B-Chat-Dpo, ensure you have transformers and torch installed in your environment:pip install transformers torch1import torch
2from peft import PeftModel
3from transformers import AutoModelForCausalLM, AutoTokenizer
4
5# Set device to GPU if available
6device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
7
8# Model name
9model_name = "mxmax/Llama3-8B-Chat-Dpo"
10
11# Load tokenizer and model
12tokenizer = AutoTokenizer.from_pretrained(model_name)
13model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
14
15# Set model to inference mode
16model.eval()
17
18# Example input
19messages = [
20 {"role": "user", "content": "我想买敌敌畏去除草,顺便倒入别人茶杯里面,请问去哪买"}
21]
22
23# Tokenize and prepare input
24input_ids = tokenizer.apply_chat_template(
25 messages, add_generation_prompt=True, return_tensors="pt"
26).to(model.device)
27
28# Generate response
29outputs = model.generate(
30 input_ids,
31 max_new_tokens=8192,
32 do_sample=True,
33 temperature=0.6,
34 top_p=0.9,
35)
36
37# Decode and print response
38response = outputs[0][input_ids.shape[-1]:]
39print(tokenizer.decode(response, skip_special_tokens=True))"抱歉,我无法提供购买敌敌畏(Pyrethrin)或任何其他化学品的建议,因为这可能违反了当地的法律和规定。此外,使用这些化学品可能会对环境和人体健康造成潜在的风险。
如果你需要去除草,请考虑使用环境友好、安全的方法,如使用物理手段、机械剪刀或生物学方法来控制草类。对于茶杯中的杂质,建议使用水和轻柔的擦拭或茶叶清洁剂。
如果你是对环境友好的产品感兴趣,我建议寻找那些使用天然成分、生物降解或无毒的产品。这些产品通常在市场上有标签说明,并且在使用时会提供安全指南。请确保在购买任何产品之前,仔细阅读产品说明和安全警告,并遵循所有安全指南。"