Views
No views yet

scripts/llm-eval.py to recreate the evaluation results from the test split as published here: gardner/tinyllama-function-calling-eval. The model responds with function calling when expected and refuses when it doesn't have access to tools. In the linked dataset, result1 is generated by this model and result2 is from the test dataset.0.3.01base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
2model_type: LlamaForCausalLM
3tokenizer_type: LlamaTokenizer
4is_llama_derived_model: true
5
6load_in_8bit: true
7load_in_4bit: false
8strict: false
9
10datasets:
11 - path: Open-Orca/SlimOrca-Dedup
12 type: sharegpt
13 conversation: chatml
14
15 - path: gardner/glaive-function-calling-v2-sharegpt
16 type: sharegpt
17 conversation: chatml
18
19dataset_prepared_path: ./.prepared-datasets/glaive-function-calling-v2-sharegpt
20val_set_size: 0.05
21output_dir: ./tinyllama/function-calling/chatml
22
23sequence_len: 4096
24sample_packing: true
25pad_to_sequence_len: true
26
27adapter: lora
28lora_model_dir:
29lora_r: 32
30lora_alpha: 16
31lora_dropout: 0.05
32lora_target_linear: true
33lora_fan_in_fan_out:
34
35wandb_project:
36wandb_entity:
37wandb_watch:
38wandb_name:
39wandb_log_model:
40
41gradient_accumulation_steps: 4
42micro_batch_size: 2
43num_epochs: 4
44optimizer: adamw_bnb_8bit
45lr_scheduler: cosine
46learning_rate: 0.0002
47
48train_on_inputs: false
49group_by_length: false
50bf16: true
51fp16: false
52tf32: false
53
54gradient_checkpointing: true
55early_stopping_patience:
56resume_from_checkpoint:
57local_rank:
58logging_steps: 1
59xformers_attention:
60flash_attention: true
61
62warmup_steps: 10
63evals_per_epoch: 4
64saves_per_epoch: 1
65debug:
66deepspeed:
67weight_decay: 0.0
68fsdp:
69fsdp_config:
70special_tokens:
71bitsandbytes quantization config was used during training:| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.2492 | 0.0 | 1 | 1.2363 |
| 0.7621 | 0.25 | 1896 | 0.8096 |
| 0.757 | 0.5 | 3792 | 0.7852 |
| 0.6424 | 0.75 | 5688 | 0.7717 |
| 0.5944 | 1.04 | 7584 | 0.7625 |
| 0.73 | 1.29 | 9480 | 0.7585 |
| 0.6781 | 1.54 | 11376 | 0.7521 |
| 0.829 | 1.79 | 13272 | 0.7471 |
| 0.6964 | 2.08 | 15168 | 0.7467 |
| 0.6652 | 2.33 | 17064 | 0.7453 |
| 0.7645 | 2.58 | 18960 | 0.7420 |
| 0.5702 | 2.83 | 20856 | 0.7392 |
| 0.7049 | 3.12 | 22752 | 0.7418 |
| 0.6087 | 3.37 | 24648 | 0.7412 |
| 0.6064 | 3.62 | 26544 | 0.7405 |
| 0.7125 | 3.87 | 28440 | 0.7403 |