Views
No views yet
1# Use a pipeline as a high-level helper
2from transformers import pipeline
3
4pipe = pipeline("text-generation", model="MaziyarPanahi/Qwen1.5-MoE-A2.7B-Wikihow")1# Load model directly
2from transformers import AutoTokenizer, AutoModelForCausalLM
3
4tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Qwen1.5-MoE-A2.7B-Wikihow")
5model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Qwen1.5-MoE-A2.7B-Wikihow")0.4.01base_model: Qwen/Qwen1.5-MoE-A2.7B
2trust_remote_code: true
3
4load_in_8bit: false
5load_in_4bit: true
6strict: false
7
8# hub_model_id: MaziyarPanahi/Qwen1.5-MoE-A2.7B-Wikihow
9# hf_use_auth_token: true
10
11chat_template: chatml
12
13datasets:
14 - path: HuggingFaceTB/cosmopedia
15 name: wikihow
16 type:
17 system_prompt: ""
18 field_instruction: prompt
19 field_output: text
20 format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
21 no_input_format: "<|im_start|>user\n{instruction}<|im_end|>\n<|im_start|>assistant\n"
22
23dataset_prepared_path:
24val_set_size: 0.0
25output_dir: ./models/Qwen1.5-MoE-A2.7B-Wikihow
26
27sequence_len: 2048
28sample_packing: false
29pad_to_sequence_len: false
30
31adapter: lora
32lora_model_dir:
33lora_r: 32
34lora_alpha: 16
35lora_dropout: 0.05
36lora_target_linear: true
37lora_fan_in_fan_out:
38
39wandb_project:
40wandb_entity:
41wandb_watch:
42wandb_name:
43wandb_log_model:
44
45gradient_accumulation_steps: 4
46micro_batch_size: 2
47num_epochs: 1
48optimizer: paged_adamw_8bit
49lr_scheduler: cosine
50learning_rate: 0.0002
51
52train_on_inputs: false
53group_by_length: false
54bf16: auto
55fp16:
56tf32: true
57
58gradient_checkpointing: true
59gradient_checkpointing_kwargs:
60 use_reentrant: false
61early_stopping_patience:
62resume_from_checkpoint:
63local_rank:
64logging_steps: 1
65xformers_attention:
66flash_attention: true
67
68warmup_steps: 10
69evals_per_epoch: 4
70saves_per_epoch: 1
71debug:
72deepspeed:
73weight_decay: 0.0
74fsdp:
75fsdp_config:
76special_tokens:| Metric | Value |
|---|---|
| Avg. | 11.43 |
| IFEval (0-Shot) | 29.54 |
| BBH (3-Shot) | 15.47 |
| MATH Lvl 5 (4-Shot) | 2.87 |
| GPQA (0-shot) | 3.36 |
| MuSR (0-shot) | 2.01 |
| MMLU-PRO (5-shot) | 15.34 |