Views
No views yet
1base_model: unsloth/Llama-3.2-3B-Instruct
2model_type: AutoModelForCausalLM
3tokenizer_type: AutoTokenizer
4
5load_in_8bit: true
6load_in_4bit: false
7strict: false
8
9chat_template: llama3
10datasets:
11 - path: ./custom_dataset.json
12 type: chat_template
13 conversation: chatml
14 ds_type: json
15
16add_bos_token: true
17add_eos_token: true
18use_default_system_prompt: false
19
20special_tokens:
21 bos_token: "<|begin_of_text|>"
22 eos_token: "<|eot_id|>"
23 pad_token: "<|eot_id|>"
24 additional_special_tokens:
25 - "<|begin_of_text|>"
26 - "<|eot_id|>"
27
28adapter: lora
29lora_model_dir:
30lora_r: 16
31lora_alpha: 32
32lora_dropout: 0.1
33lora_target_linear: true
34
35hub_model_id: suayptalha/DeepSeek-R1-Distill-Llama-3B
36
37sequence_len: 2048
38sample_packing: false
39pad_to_sequence_len: true
40micro_batch_size: 2
41gradient_accumulation_steps: 8
42num_epochs: 1
43learning_rate: 2e-5
44optimizer: paged_adamw_8bit
45lr_scheduler: cosine
46
47train_on_inputs: false
48group_by_length: false
49bf16: false
50fp16: true
51tf32: false
52
53gradient_checkpointing: true
54flash_attention: false
55
56logging_steps: 50
57warmup_steps: 100
58saves_per_epoch: 1
59
60output_dir: ./finetune-sft-results
61save_safetensors: true<|start_header_id|>system<|end_header_id|>
{system}<|eot_id|>
<|start_header_id|>user<|end_header_id|>
{user}<|eot_id|>
<|start_header_id|>assistant<|end_header_id|>
{assistant}<|eot_id|>1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model = AutoModelForCausalLM.from_pretrained(
5 "suayptalha/DeepSeek-R1-Distill-Llama-3B",
6 device_map="auto"
7)
8
9tokenizer = AutoTokenizer.from_pretrained("suayptalha/DeepSeek-R1-Distill-Llama-3B")
10
11SYSTEM_PROMPT = """Respond in the following format:
12<think>
13You should reason between these tags.
14</think>
15
16Answer goes here...
17
18Always use <think> </think> tags even if they are not necessary.
19"""
20
21messages = [
22 {"role": "system", "content": SYSTEM_PROMPT},
23 {"role": "user", "content": "Which one is larger? 9.11 or 9.9?"},
24]
25inputs = tokenizer.apply_chat_template(
26 messages,
27 tokenize = True,
28 add_generation_prompt = True,
29 return_tensors = "pt",
30).to("cuda")
31output = model.generate(input_ids=inputs, max_new_tokens=256, use_cache=True, temperature=0.7)
32decoded_output = tokenizer.decode(output[0], skip_special_tokens=False)
33print(decoded_output)<think>
First, I need to compare the two numbers 9.11 and 9.9.
Next, I'll analyze each number. The first digit after the decimal point in 9.11 is 1, and in 9.9, it's 9.
Since 9 is greater than 1, 9.9 is larger than 9.11.
</think>
To determine which number is larger, let's compare the two numbers:
**9.11** and **9.9**
1. **Identify the Decimal Places:**
- Both numbers have two decimal places.
2. **Compare the Tens Place (Right of the Decimal Point):**
- **9.11:** The tens place is 1.
- **9.9:** The tens place is 9.
3. **Conclusion:**
- Since 9 is greater than 1, the number with the larger tens place is 9.9.
**Answer:** **9.9** is larger than **9.11**.Respond in the following format:
<think>
You should reason between these tags.
</think>
Answer goes here...
Always use <think> </think> tags even if they are not necessary.| Metric | Value |
|---|---|
| Avg. | 23.27 |
| IFEval (0-Shot) | 70.93 |
| BBH (3-Shot) | 21.45 |
| MATH Lvl 5 (4-Shot) | 20.92 |
| GPQA (0-shot) | 1.45 |
| MuSR (0-shot) | 2.91 |
| MMLU-PRO (5-shot) | 21.98 |