Views
No views yet
0.4.01base_model: NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT
2model_type: MixtralForCausalLM
3tokenizer_type: LlamaTokenizer
4trust_remote_code: true
5
6hub_model_id: MaziyarPanahi/Nous-Hermes-2-Mixtral-8x7B-SFT-Alpaca
7hf_use_auth_token: true
8
9load_in_4bit: true
10strict: false
11
12datasets:
13 - path: tatsu-lab/alpaca
14 type: alpaca
15
16dataset_prepared_path: last_run_prepared
17val_set_size: 0.1
18output_dir: ./qlora-out
19
20# save_safetensors: true
21
22adapter: qlora
23lora_model_dir:
24
25sequence_len: 1024
26sample_packing: true
27pad_to_sequence_len: true
28
29lora_r: 32
30lora_alpha: 16
31lora_dropout: 0.05
32lora_target_linear: true
33lora_fan_in_fan_out:
34lora_target_modules:
35# - gate
36 - q_proj
37# - k_proj
38 - v_proj
39# - o_proj
40# - w1
41# - w2
42# - w3
43
44wandb_project:
45wandb_entity:
46wandb_watch:
47wandb_name:
48wandb_log_model:
49
50gradient_accumulation_steps: 4
51micro_batch_size: 2
52num_epochs: 1
53optimizer: adamw_bnb_8bit
54lr_scheduler: cosine
55learning_rate: 0.0002
56
57train_on_inputs: false
58group_by_length: false
59bf16: auto
60fp16:
61tf32: false
62
63gradient_checkpointing: true
64early_stopping_patience:
65resume_from_checkpoint:
66local_rank:
67logging_steps: 1
68xformers_attention:
69flash_attention: true
70
71loss_watchdog_threshold: 5.0
72loss_watchdog_patience: 3
73
74warmup_steps: 10
75evals_per_epoch: 4
76eval_table_size:
77eval_max_new_tokens: 128
78saves_per_epoch: 1
79debug:
80deepspeed:
81weight_decay: 0.0
82fsdp:
83fsdp_config:
84special_tokens:
85 bos_token: "<s>"
86 eos_token: "</s>"
87 unk_token: "<unk>"1from peft import PeftModel, PeftConfig
2from transformers import AutoModelForCausalLM
3
4config = PeftConfig.from_pretrained("MaziyarPanahi/Nous-Hermes-2-Mixtral-8x7B-SFT-Alpaca")
5model = AutoModelForCausalLM.from_pretrained("NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT")
6model = PeftModel.from_pretrained(model, "MaziyarPanahi/Nous-Hermes-2-Mixtral-8x7B-SFT-Alpaca")1# Use a pipeline as a high-level helper
2from transformers import pipeline
3
4pipe = pipeline("text-generation", model="MaziyarPanahi/Nous-Hermes-2-Mixtral-8x7B-SFT-Alpaca")
5
6# Load model directly
7from transformers import AutoTokenizer, AutoModelForCausalLM
8
9tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Nous-Hermes-2-Mixtral-8x7B-SFT-Alpaca")
10model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Nous-Hermes-2-Mixtral-8x7B-SFT-Alpaca")| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.3912 | 0.01 | 1 | 1.3714 |
| 1.0321 | 0.25 | 45 | 1.0427 |
| 1.0312 | 0.51 | 90 | 1.0327 |
| 0.9917 | 0.76 | 135 | 1.0276 |