Model save
Browse files- .gitattributes +1 -0
- README.md +56 -0
- adapter_config.json +37 -0
- adapter_model.safetensors +3 -0
- config.json +39 -0
- special_tokens_map.json +17 -0
- tokenizer.json +3 -0
- tokenizer_config.json +0 -0
- trainer_state.json +98 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: meta-llama/Llama-3.2-3B-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
license: llama3.2
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: Instruments-8bit-3B
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# Instruments-8bit-3B
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) on an unknown dataset.
|
| 18 |
+
|
| 19 |
+
## Model description
|
| 20 |
+
|
| 21 |
+
More information needed
|
| 22 |
+
|
| 23 |
+
## Intended uses & limitations
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Training and evaluation data
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training procedure
|
| 32 |
+
|
| 33 |
+
### Training hyperparameters
|
| 34 |
+
|
| 35 |
+
The following hyperparameters were used during training:
|
| 36 |
+
- learning_rate: 0.0001
|
| 37 |
+
- train_batch_size: 8
|
| 38 |
+
- eval_batch_size: 8
|
| 39 |
+
- seed: 42
|
| 40 |
+
- gradient_accumulation_steps: 16
|
| 41 |
+
- total_train_batch_size: 128
|
| 42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
+
- lr_scheduler_type: linear
|
| 44 |
+
- lr_scheduler_warmup_steps: 2
|
| 45 |
+
- num_epochs: 2
|
| 46 |
+
|
| 47 |
+
### Training results
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
### Framework versions
|
| 52 |
+
|
| 53 |
+
- PEFT 0.13.2
|
| 54 |
+
- Transformers 4.45.2
|
| 55 |
+
- Pytorch 2.4.1
|
| 56 |
+
- Tokenizers 0.20.1
|
adapter_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "LlamaForCausalLM",
|
| 5 |
+
"parent_library": "transformers.models.llama.modeling_llama"
|
| 6 |
+
},
|
| 7 |
+
"base_model_name_or_path": "meta-llama/Llama-3.2-3B-Instruct",
|
| 8 |
+
"bias": "none",
|
| 9 |
+
"fan_in_fan_out": false,
|
| 10 |
+
"inference_mode": true,
|
| 11 |
+
"init_lora_weights": "gaussian",
|
| 12 |
+
"layer_replication": null,
|
| 13 |
+
"layers_pattern": null,
|
| 14 |
+
"layers_to_transform": null,
|
| 15 |
+
"loftq_config": {},
|
| 16 |
+
"lora_alpha": 32,
|
| 17 |
+
"lora_dropout": 0.1,
|
| 18 |
+
"megatron_config": null,
|
| 19 |
+
"megatron_core": "megatron.core",
|
| 20 |
+
"modules_to_save": null,
|
| 21 |
+
"peft_type": "LORA",
|
| 22 |
+
"r": 8,
|
| 23 |
+
"rank_pattern": {},
|
| 24 |
+
"revision": null,
|
| 25 |
+
"target_modules": [
|
| 26 |
+
"down_proj",
|
| 27 |
+
"up_proj",
|
| 28 |
+
"o_proj",
|
| 29 |
+
"q_proj",
|
| 30 |
+
"k_proj",
|
| 31 |
+
"gate_proj",
|
| 32 |
+
"v_proj"
|
| 33 |
+
],
|
| 34 |
+
"task_type": null,
|
| 35 |
+
"use_dora": true,
|
| 36 |
+
"use_rslora": false
|
| 37 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4296b9cf510cd2dd41ae8bf4eb415a592e7aba73769a261849b22435972f91f
|
| 3 |
+
size 1639093264
|
config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 128000,
|
| 8 |
+
"eos_token_id": [
|
| 9 |
+
128001,
|
| 10 |
+
128008,
|
| 11 |
+
128009
|
| 12 |
+
],
|
| 13 |
+
"head_dim": 128,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 3072,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 8192,
|
| 18 |
+
"max_position_embeddings": 131072,
|
| 19 |
+
"mlp_bias": false,
|
| 20 |
+
"model_type": "llama",
|
| 21 |
+
"num_attention_heads": 24,
|
| 22 |
+
"num_hidden_layers": 28,
|
| 23 |
+
"num_key_value_heads": 8,
|
| 24 |
+
"pretraining_tp": 1,
|
| 25 |
+
"rms_norm_eps": 1e-05,
|
| 26 |
+
"rope_scaling": {
|
| 27 |
+
"factor": 32.0,
|
| 28 |
+
"high_freq_factor": 4.0,
|
| 29 |
+
"low_freq_factor": 1.0,
|
| 30 |
+
"original_max_position_embeddings": 8192,
|
| 31 |
+
"rope_type": "llama3"
|
| 32 |
+
},
|
| 33 |
+
"rope_theta": 500000.0,
|
| 34 |
+
"tie_word_embeddings": true,
|
| 35 |
+
"torch_dtype": "bfloat16",
|
| 36 |
+
"transformers_version": "4.45.2",
|
| 37 |
+
"use_cache": true,
|
| 38 |
+
"vocab_size": 129174
|
| 39 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|begin_of_text|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|eot_id|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": "!"
|
| 17 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cdb5a41c4ff365aaf322d31b46b6ce2c9f8493fa398bd5ad4fbe6179ebfa53e
|
| 3 |
+
size 17378691
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
trainer_state.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 2.0,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 2060,
|
| 7 |
+
"is_hyper_param_search": false,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 0.24271844660194175,
|
| 13 |
+
"grad_norm": 2.2880468368530273,
|
| 14 |
+
"learning_rate": 8.794946550048592e-05,
|
| 15 |
+
"loss": 0.7378,
|
| 16 |
+
"step": 250
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.4854368932038835,
|
| 20 |
+
"grad_norm": 1.7398513555526733,
|
| 21 |
+
"learning_rate": 7.580174927113704e-05,
|
| 22 |
+
"loss": 0.448,
|
| 23 |
+
"step": 500
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.7281553398058253,
|
| 27 |
+
"grad_norm": 1.7528009414672852,
|
| 28 |
+
"learning_rate": 6.365403304178815e-05,
|
| 29 |
+
"loss": 0.4192,
|
| 30 |
+
"step": 750
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 0.970873786407767,
|
| 34 |
+
"grad_norm": 1.7135326862335205,
|
| 35 |
+
"learning_rate": 5.150631681243926e-05,
|
| 36 |
+
"loss": 0.3959,
|
| 37 |
+
"step": 1000
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"epoch": 1.2135922330097086,
|
| 41 |
+
"grad_norm": 2.295848846435547,
|
| 42 |
+
"learning_rate": 3.9358600583090386e-05,
|
| 43 |
+
"loss": 0.3666,
|
| 44 |
+
"step": 1250
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 1.4563106796116505,
|
| 48 |
+
"grad_norm": 2.189216136932373,
|
| 49 |
+
"learning_rate": 2.72108843537415e-05,
|
| 50 |
+
"loss": 0.3465,
|
| 51 |
+
"step": 1500
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"epoch": 1.6990291262135924,
|
| 55 |
+
"grad_norm": 2.383833885192871,
|
| 56 |
+
"learning_rate": 1.5063168124392615e-05,
|
| 57 |
+
"loss": 0.3249,
|
| 58 |
+
"step": 1750
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 1.941747572815534,
|
| 62 |
+
"grad_norm": 2.1898789405822754,
|
| 63 |
+
"learning_rate": 2.915451895043732e-06,
|
| 64 |
+
"loss": 0.3096,
|
| 65 |
+
"step": 2000
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"epoch": 2.0,
|
| 69 |
+
"step": 2060,
|
| 70 |
+
"total_flos": 6.440370064857293e+17,
|
| 71 |
+
"train_loss": 0.4152493615752285,
|
| 72 |
+
"train_runtime": 78972.7393,
|
| 73 |
+
"train_samples_per_second": 3.339,
|
| 74 |
+
"train_steps_per_second": 0.026
|
| 75 |
+
}
|
| 76 |
+
],
|
| 77 |
+
"logging_steps": 250,
|
| 78 |
+
"max_steps": 2060,
|
| 79 |
+
"num_input_tokens_seen": 0,
|
| 80 |
+
"num_train_epochs": 2,
|
| 81 |
+
"save_steps": 500,
|
| 82 |
+
"stateful_callbacks": {
|
| 83 |
+
"TrainerControl": {
|
| 84 |
+
"args": {
|
| 85 |
+
"should_epoch_stop": false,
|
| 86 |
+
"should_evaluate": false,
|
| 87 |
+
"should_log": false,
|
| 88 |
+
"should_save": false,
|
| 89 |
+
"should_training_stop": false
|
| 90 |
+
},
|
| 91 |
+
"attributes": {}
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"total_flos": 6.440370064857293e+17,
|
| 95 |
+
"train_batch_size": 8,
|
| 96 |
+
"trial_name": null,
|
| 97 |
+
"trial_params": null
|
| 98 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0653084ef74cad66a842993ee891fafc998059dc681e884d2eb0539b717dfcce
|
| 3 |
+
size 5176
|