Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| mistral-7b-dpo-v6.Q2_K.gguf | Q2_K | 2.53GB |
| mistral-7b-dpo-v6.IQ3_XS.gguf | IQ3_XS | 2.81GB |
| mistral-7b-dpo-v6.IQ3_S.gguf | IQ3_S | 2.96GB |
| mistral-7b-dpo-v6.Q3_K_S.gguf | Q3_K_S | 2.95GB |
| mistral-7b-dpo-v6.IQ3_M.gguf | IQ3_M | 3.06GB |
| mistral-7b-dpo-v6.Q3_K.gguf | Q3_K | 3.28GB |
| mistral-7b-dpo-v6.Q3_K_M.gguf | Q3_K_M | 3.28GB |
| mistral-7b-dpo-v6.Q3_K_L.gguf | Q3_K_L | 3.56GB |
| mistral-7b-dpo-v6.IQ4_XS.gguf | IQ4_XS | 3.67GB |
| mistral-7b-dpo-v6.Q4_0.gguf | Q4_0 | 3.83GB |
| mistral-7b-dpo-v6.IQ4_NL.gguf | IQ4_NL | 3.87GB |
| mistral-7b-dpo-v6.Q4_K_S.gguf | Q4_K_S | 3.86GB |
| mistral-7b-dpo-v6.Q4_K.gguf | Q4_K | 4.07GB |
| mistral-7b-dpo-v6.Q4_K_M.gguf | Q4_K_M | 4.07GB |
| mistral-7b-dpo-v6.Q4_1.gguf | Q4_1 | 4.24GB |
| mistral-7b-dpo-v6.Q5_0.gguf | Q5_0 | 4.65GB |
| mistral-7b-dpo-v6.Q5_K_S.gguf | Q5_K_S | 4.65GB |
| mistral-7b-dpo-v6.Q5_K.gguf | Q5_K | 4.78GB |
| mistral-7b-dpo-v6.Q5_K_M.gguf | Q5_K_M | 4.78GB |
| mistral-7b-dpo-v6.Q5_1.gguf | Q5_1 | 5.07GB |
| mistral-7b-dpo-v6.Q6_K.gguf | Q6_K | 5.53GB |
| mistral-7b-dpo-v6.Q8_0.gguf | Q8_0 | 7.17GB |
models:
- model: AIDC-ai-business/Marcoroni-7B-v3
# no parameters necessary for base model
- model: GreenNode/GreenNodeLM-7B-v1olet # psmathur/orca_mini_v3_13b
parameters:
density: [1, 0.7, 0.1] # density gradient
weight: 1.0
- model: viethq188/LeoScorpius-7B-Chat-DPO
parameters:
density: 0.5
weight: [0, 0.3, 0.7, 1] # weight gradient
- model: mncai/mistral-7b-dpo-v5
parameters:
density: 0.33
weight:
- filter: mlp
value: 0.5
- value: 0
merge_method: ties
base_model: AIDC-ai-business/Marcoroni-7B-v3
parameters:
normalize: true
int8_mask: true
dtype: float161# Training arguments
2training_args = TrainingArguments(
3 per_device_train_batch_size=5,
4 gradient_accumulation_steps=4,
5 gradient_checkpointing=True,
6 learning_rate=5e-6,
7 lr_scheduler_type="cosine",
8 max_steps=1000,
9 save_strategy="no",
10 logging_steps=1,
11 output_dir=new_model,
12 optim="paged_adamw_32bit",
13 warmup_steps=100,
14 bf16=True,
15 report_to="wandb",
16)
17
18# Create DPO trainer
19dpo_trainer = DPOTrainer(
20 model,
21 ref_model,
22 args=training_args,
23 train_dataset=dataset,
24 tokenizer=tokenizer,
25 # peft_config=peft_config,
26 beta=0.1,
27 max_prompt_length=1024,
28 max_length=2048,
29)
30
31# Fine-tune model with DPO
32dpo_trainer.train()1from transformers import AutoConfig, AutoModel, AutoTokenizer
2import transformers
3import torch
4hf_model = 'mncai/mistral-7b-dpo-v6'
5message = "<|user|>\n두 개의 구가 있는데 각각 지름이 1, 2일때 구의 부피는 몇배 차이가 나지? 설명도 같이 해줘.\n<|assistant|>\n"
6
7sequences = pipeline(
8 message,
9 do_sample=True,
10 top_k=10,
11 num_return_sequences=1,
12 eos_token_id=tokenizer.eos_token_id,
13 max_length=2048,
14)
15for seq in sequences:
16 print(f"Result: {seq['generated_text']}")