CoolFace
Modelpublic

msaavedra1234/tiny_t

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes67downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/> <details><summary>See axolotl config</summary>

axolotl version: 0.3.0

yaml
base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
model_type: LlamaForCausalLM
tokenizer_type: LlamaTokenizer
is_llama_derived_model: true


eval_sample_packing: False #Poco dato

load_in_8bit: false
load_in_4bit: false
strict: false

datasets:
  - path: data.json # or json
    ds_type: json # see other options below
    type: completion

dataset_prepared_path:
val_set_size: 0.05
# output_dir: ./lora-out

sequence_len: 4096
sample_packing: true
pad_to_sequence_len: true

# adapter: lora
# lora_model_dir:
# lora_r: 32
# lora_alpha: 16
# lora_dropout: 0.05
# lora_target_linear: true
# lora_fan_in_fan_out:

wandb_project:
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model:
output_dir: ./tinyllama-out
gradient_accumulation_steps: 4
micro_batch_size: 2
num_epochs: 8 #2
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 0.0002

train_on_inputs: false
group_by_length: false
bf16: true
fp16: false #TODO: change to true
tf32: false

gradient_checkpointing: true
early_stopping_patience:
resume_from_checkpoint:
local_rank:
logging_steps: 1
xformers_attention:
flash_attention: true

save_strategy: "no"

warmup_steps: 10
evals_per_epoch: 4
# saves_per_epoch: 1
debug:
deepspeed:
weight_decay: 0.0
fsdp:
fsdp_config:
special_tokens:

</details><br>

tinyllama-out

This model is a fine-tuned version of TinyLlama/TinyLlama-1.1B-Chat-v1.0 on the None dataset. It achieves the following results on the evaluation set:

  • Loss: 1.8806

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0002
  • trainbatchsize: 2
  • evalbatchsize: 2
  • seed: 42
  • gradientaccumulationsteps: 4
  • totaltrainbatch_size: 8
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: cosine
  • lrschedulerwarmup_steps: 10
  • num_epochs: 8

Training results

Training LossEpochStepValidation Loss
1.98940.1311.5790
1.9150.2621.4849
1.6420.5241.4032
1.53960.7761.4059
1.37461.0381.4101
0.93551.23101.5147
0.92661.48121.5291
0.80061.74141.4724
0.76642.0161.4965
0.48132.16181.5715
0.41932.42201.5436
0.3642.68221.6040
0.35922.94241.5823
0.18843.13261.6850
0.1593.39281.8316
0.16413.65301.7286
0.15123.9321.7029
0.15634.06341.7033
0.06964.32361.7482
0.06434.58381.8069
0.06624.84401.8410
0.07095.1421.8529
0.03445.26441.8626
0.04685.52461.8716
0.03285.77481.8761
0.03536.03501.8789
0.03756.23521.8803
0.03456.48541.8802
0.03466.74561.8806

Framework versions

  • Transformers 4.37.0.dev0
  • Pytorch 2.0.1
  • Datasets 2.16.1
  • Tokenizers 0.15.0