Run this model with HF Jobs
Run BattleTag/SoC_llama on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/BattleTag/SoC_llama. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BattleTag/SoC_llama on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use BattleTag/SoC_llama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use BattleTag/SoC_llama with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "BattleTag/SoC_llama") - Notebooks
- Google Colab
- Kaggle
BattleTag/SoC_llama
Browse filesFiles changed (9)
- README.mdAdded+68
- adapter_config.jsonAdded+29
- adapter_model.safetensorsAdded+3
- runs/Jul09_17-13-38_zer0-System-Product-Name/events.out.tfevents.1720509219.zer0-System-Product-Name.50848.0Added+3
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+42
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---base_model: meta-llama/Llama-2-7b-hflibrary_name: peftlicense: llama2tags:- trl- sft- generated_from_trainermodel-index:- name: SoC_llama results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# SoC_llama
This model is a fine-tuned version of [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 1.2722
## 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- train_batch_size: 4- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 2- total_train_batch_size: 8- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.3- num_epochs: 2
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:------:|:----:|:---------------:|| 1.3616 | 0.3656 | 100 | 1.3015 || 1.3188 | 0.7313 | 200 | 1.2873 || 1.263 | 1.0969 | 300 | 1.2799 || 1.2907 | 1.4625 | 400 | 1.2760 || 1.2168 | 1.8282 | 500 | 1.2722 |
### Framework versions
- PEFT 0.11.2.dev0- Transformers 4.43.0.dev0- Pytorch 2.3.0+cu121- Datasets 2.20.0- Tokenizers 0.19.11234567891011121314151617181920212223242526272829{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "meta-llama/Llama-2-7b-hf", "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_dropout": 0.1, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 64, "rank_pattern": {}, "revision": null, "target_modules": [ "v_proj", "q_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:f3085c861f2746429b5d7d0b3406694b4161c2c90bb98e8816f5816918fd404asize 134235048123version https://git-lfs.github.com/spec/v1oid sha256:f33476ebcb80da2b57db76f021764f7e007cdd4d3be46eb1a5d0bcd1f24cfbb9size 18498123456789101112131415161718192021222324{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "</s>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347size 499723123456789101112131415161718192021222324252627282930313233343536373839404142{ "add_bos_token": true, "add_eos_token": false, "add_prefix_space": null, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "legacy": false, "model_max_length": 1000000000000000019884624838656, "pad_token": "</s>", "padding_side": "right", "sp_model_kwargs": {}, "tokenizer_class": "LlamaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": false}123version https://git-lfs.github.com/spec/v1oid sha256:44f7cfa023a6ef1b5c78ff5c2f4488bf6facc1866a0d4331239e3b98b56fd156size 5176README.mdAdded+68
adapter_config.jsonAdded+29
adapter_model.safetensorsAdded+3
runs/Jul09_17-13-38_zer0-System-Product-Name/events.out.tfevents.1720509219.zer0-System-Product-Name.50848.0Added+3
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+42
training_args.binAdded+3