Add README.md
Browse files
README.md
CHANGED
|
@@ -1,111 +1,65 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
tags:
|
|
|
|
| 6 |
- lora
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
|
| 11 |
-
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
### Expected Output Format
|
| 67 |
-
|
| 68 |
-
The model generates structured JSON responses like:
|
| 69 |
-
```json
|
| 70 |
-
{
|
| 71 |
-
"trace_id": "002",
|
| 72 |
-
"steps": [
|
| 73 |
-
{
|
| 74 |
-
"action": "call_api",
|
| 75 |
-
"api": "weather_api",
|
| 76 |
-
"arguments": {"location": "New York"}
|
| 77 |
-
},
|
| 78 |
-
{
|
| 79 |
-
"action": "respond",
|
| 80 |
-
"message": "The weather in New York is currently sunny with a temperature of 72°F."
|
| 81 |
-
}
|
| 82 |
-
]
|
| 83 |
-
}
|
| 84 |
-
```
|
| 85 |
-
|
| 86 |
-
## Training Details
|
| 87 |
-
|
| 88 |
-
- **Dataset**: Custom tool-calling dataset with instruction/input/output format
|
| 89 |
-
- **Template**: llama3 chat template
|
| 90 |
-
- **Cutoff Length**: 4096 tokens
|
| 91 |
-
- **Batch Size**: 2 (effective batch size: 8 with gradient accumulation)
|
| 92 |
-
- **Optimizer**: AdamW with cosine learning rate scheduling
|
| 93 |
-
- **Warmup Ratio**: 0.1
|
| 94 |
-
|
| 95 |
-
## Performance
|
| 96 |
-
|
| 97 |
-
The model shows improved capability in:
|
| 98 |
-
- Generating structured JSON responses
|
| 99 |
-
- Following tool-calling patterns
|
| 100 |
-
- Maintaining context for multi-step tool execution
|
| 101 |
-
- Producing consistent output formats
|
| 102 |
-
|
| 103 |
-
## Limitations
|
| 104 |
-
|
| 105 |
-
- Requires the base LLaMA-3-8B-Instruct model to function
|
| 106 |
-
- May generate invalid JSON in some edge cases
|
| 107 |
-
- Performance depends on the quality of the training data
|
| 108 |
-
|
| 109 |
-
## License
|
| 110 |
-
|
| 111 |
-
This model is released under the MIT License.
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
license: other
|
| 4 |
+
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 5 |
tags:
|
| 6 |
+
- llama-factory
|
| 7 |
- lora
|
| 8 |
+
- generated_from_trainer
|
| 9 |
+
model-index:
|
| 10 |
+
- name: llama-traces
|
| 11 |
+
results: []
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# llama-traces
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct) on the test_tool_calling dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.2230
|
| 22 |
+
|
| 23 |
+
## Model description
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Intended uses & limitations
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training and evaluation data
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training procedure
|
| 36 |
+
|
| 37 |
+
### Training hyperparameters
|
| 38 |
+
|
| 39 |
+
The following hyperparameters were used during training:
|
| 40 |
+
- learning_rate: 5e-05
|
| 41 |
+
- train_batch_size: 2
|
| 42 |
+
- eval_batch_size: 2
|
| 43 |
+
- seed: 42
|
| 44 |
+
- gradient_accumulation_steps: 4
|
| 45 |
+
- total_train_batch_size: 8
|
| 46 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 47 |
+
- lr_scheduler_type: cosine
|
| 48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 49 |
+
- num_epochs: 5.0
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 54 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 55 |
+
| 0.2127 | 2.5031 | 100 | 0.2533 |
|
| 56 |
+
| 0.1242 | 5.0 | 200 | 0.2230 |
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
### Framework versions
|
| 60 |
+
|
| 61 |
+
- PEFT 0.15.2
|
| 62 |
+
- Transformers 4.52.4
|
| 63 |
+
- Pytorch 2.6.0+cu124
|
| 64 |
+
- Datasets 3.6.0
|
| 65 |
+
- Tokenizers 0.21.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|