Instructions to use ioseff/trial_llm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ioseff/trial_llm with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf") model = PeftModel.from_pretrained(base_model, "ioseff/trial_llm") - Notebooks
- Google Colab
- Kaggle
Upload 11 files
Browse filesFiles changed (11)
- README.md+201-3
- adapter_config.jsonAdded+29
- adapter_model.safetensorsAdded+3
- optimizer.ptAdded+3
- rng_state.pthAdded+3
- scheduler.ptAdded+3
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+42
- trainer_state.jsonAdded+371
- training_args.binAdded+3
1234---license: apache-2.0pipeline_tag: text-generation---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202---library_name: peftbase_model: meta-llama/Llama-2-7b-chat-hf---# Model Card for Model ID<!-- Provide a quick summary of what the model is/does. -->## Model Details### Model Description<!-- Provide a longer summary of what this model is. -->- **Developed by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]### Model Sources [optional]<!-- Provide the basic links for the model. -->- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]## Uses<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->### Direct Use<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->[More Information Needed]### Downstream Use [optional]<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->[More Information Needed]### Out-of-Scope Use<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->[More Information Needed]## Bias, Risks, and Limitations<!-- This section is meant to convey both technical and sociotechnical limitations. -->[More Information Needed]### Recommendations<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.## How to Get Started with the ModelUse the code below to get started with the model.[More Information Needed]## Training Details### Training Data<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->[More Information Needed]### Training Procedure<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->#### Preprocessing [optional][More Information Needed]#### Training Hyperparameters- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->#### Speeds, Sizes, Times [optional]<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->[More Information Needed]## Evaluation<!-- This section describes the evaluation protocols and provides the results. -->### Testing Data, Factors & Metrics#### Testing Data<!-- This should link to a Dataset Card if possible. -->[More Information Needed]#### Factors<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->[More Information Needed]#### Metrics<!-- These are the evaluation metrics being used, ideally with a description of why. -->[More Information Needed]### Results[More Information Needed]#### Summary## Model Examination [optional]<!-- Relevant interpretability work for the model goes here -->[More Information Needed]## Environmental Impact<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).- **Hardware Type:** [More Information Needed]- **Hours used:** [More Information Needed]- **Cloud Provider:** [More Information Needed]- **Compute Region:** [More Information Needed]- **Carbon Emitted:** [More Information Needed]## Technical Specifications [optional]### Model Architecture and Objective[More Information Needed]### Compute Infrastructure[More Information Needed]#### Hardware[More Information Needed]#### Software[More Information Needed]## Citation [optional]<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->**BibTeX:**[More Information Needed]**APA:**[More Information Needed]## Glossary [optional]<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->[More Information Needed]## More Information [optional][More Information Needed]## Model Card Authors [optional][More Information Needed]## Model Card Contact[More Information Needed]### Framework versions- PEFT 0.11.0
1234567891011121314151617181920212223242526272829{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-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:c89a685f8d845363abf11c32284d4bff90c4c92d60783a29305fcfdd8dbef282size 134235048123version https://git-lfs.github.com/spec/v1oid sha256:3af1e2802a7022ac30d868d7ceff1af5bcf84ac3af11aab76fcbecdc6d08564fsize 268515002123version https://git-lfs.github.com/spec/v1oid sha256:db44f2784fb495110364bec032ef1505fa92ac9d22c689078502f2cbba98ec68size 14244123version https://git-lfs.github.com/spec/v1oid sha256:d42b335956da3b655298299d7e333ff9171ac29f23d601c37a8c7adb27f27744size 1064123456789101112131415161718192021222324{ "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 }}123456789101112131415161718192021222324252627282930313233343536373839404142{ "add_bos_token": true, "add_eos_token": false, "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>", "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}", "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}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371{ "best_metric": null, "best_model_checkpoint": null, "epoch": 10.0, "eval_steps": 500, "global_step": 1250, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.2, "grad_norm": 0.19323205947875977, "learning_rate": 0.0002, "loss": 1.4874, "step": 25 }, { "epoch": 0.4, "grad_norm": 0.1678144633769989, "learning_rate": 0.0002, "loss": 1.4509, "step": 50 }, { "epoch": 0.6, "grad_norm": 0.08337455242872238, "learning_rate": 0.0002, "loss": 1.3405, "step": 75 }, { "epoch": 0.8, "grad_norm": 0.09026125818490982, "learning_rate": 0.0002, "loss": 1.3735, "step": 100 }, { "epoch": 1.0, "grad_norm": 0.1073032096028328, "learning_rate": 0.0002, "loss": 1.4068, "step": 125 }, { "epoch": 1.2, "grad_norm": 0.13652268052101135, "learning_rate": 0.0002, "loss": 1.2271, "step": 150 }, { "epoch": 1.4, "grad_norm": 0.12082232534885406, "learning_rate": 0.0002, "loss": 1.2864, "step": 175 }, { "epoch": 1.6, "grad_norm": 0.12123199552297592, "learning_rate": 0.0002, "loss": 1.254, "step": 200 }, { "epoch": 1.8, "grad_norm": 0.11623656004667282, "learning_rate": 0.0002, "loss": 1.3337, "step": 225 }, { "epoch": 2.0, "grad_norm": 0.13121260702610016, "learning_rate": 0.0002, "loss": 1.2837, "step": 250 }, { "epoch": 2.2, "grad_norm": 0.17798519134521484, "learning_rate": 0.0002, "loss": 1.1528, "step": 275 }, { "epoch": 2.4, "grad_norm": 0.16624127328395844, "learning_rate": 0.0002, "loss": 1.1691, "step": 300 }, { "epoch": 2.6, "grad_norm": 0.13809803128242493, "learning_rate": 0.0002, "loss": 1.1826, "step": 325 }, { "epoch": 2.8, "grad_norm": 0.13886697590351105, "learning_rate": 0.0002, "loss": 1.2243, "step": 350 }, { "epoch": 3.0, "grad_norm": 0.20055805146694183, "learning_rate": 0.0002, "loss": 1.2453, "step": 375 }, { "epoch": 3.2, "grad_norm": 0.2664979100227356, "learning_rate": 0.0002, "loss": 1.068, "step": 400 }, { "epoch": 3.4, "grad_norm": 0.19323182106018066, "learning_rate": 0.0002, "loss": 1.1088, "step": 425 }, { "epoch": 3.6, "grad_norm": 0.2079138457775116, "learning_rate": 0.0002, "loss": 1.0796, "step": 450 }, { "epoch": 3.8, "grad_norm": 0.20442678034305573, "learning_rate": 0.0002, "loss": 1.1325, "step": 475 }, { "epoch": 4.0, "grad_norm": 0.25957778096199036, "learning_rate": 0.0002, "loss": 1.1482, "step": 500 }, { "epoch": 4.2, "grad_norm": 0.3366886079311371, "learning_rate": 0.0002, "loss": 1.0235, "step": 525 }, { "epoch": 4.4, "grad_norm": 0.25876155495643616, "learning_rate": 0.0002, "loss": 0.9673, "step": 550 }, { "epoch": 4.6, "grad_norm": 0.239900603890419, "learning_rate": 0.0002, "loss": 1.0075, "step": 575 }, { "epoch": 4.8, "grad_norm": 0.23491528630256653, "learning_rate": 0.0002, "loss": 1.0195, "step": 600 }, { "epoch": 5.0, "grad_norm": 0.27541735768318176, "learning_rate": 0.0002, "loss": 1.0431, "step": 625 }, { "epoch": 5.2, "grad_norm": 0.3689779043197632, "learning_rate": 0.0002, "loss": 0.9048, "step": 650 }, { "epoch": 5.4, "grad_norm": 0.2586508095264435, "learning_rate": 0.0002, "loss": 0.8714, "step": 675 }, { "epoch": 5.6, "grad_norm": 0.2392464578151703, "learning_rate": 0.0002, "loss": 0.8859, "step": 700 }, { "epoch": 5.8, "grad_norm": 0.2529771029949188, "learning_rate": 0.0002, "loss": 0.9311, "step": 725 }, { "epoch": 6.0, "grad_norm": 0.5787801146507263, "learning_rate": 0.0002, "loss": 0.9657, "step": 750 }, { "epoch": 6.2, "grad_norm": 0.5453413128852844, "learning_rate": 0.0002, "loss": 0.8175, "step": 775 }, { "epoch": 6.4, "grad_norm": 0.34291961789131165, "learning_rate": 0.0002, "loss": 0.8445, "step": 800 }, { "epoch": 6.6, "grad_norm": 0.28864824771881104, "learning_rate": 0.0002, "loss": 0.8116, "step": 825 }, { "epoch": 6.8, "grad_norm": 0.22972020506858826, "learning_rate": 0.0002, "loss": 0.7752, "step": 850 }, { "epoch": 7.0, "grad_norm": 0.43756699562072754, "learning_rate": 0.0002, "loss": 0.8068, "step": 875 }, { "epoch": 7.2, "grad_norm": 0.5593159794807434, "learning_rate": 0.0002, "loss": 0.7582, "step": 900 }, { "epoch": 7.4, "grad_norm": 0.3569984436035156, "learning_rate": 0.0002, "loss": 0.7165, "step": 925 }, { "epoch": 7.6, "grad_norm": 0.3286341428756714, "learning_rate": 0.0002, "loss": 0.706, "step": 950 }, { "epoch": 7.8, "grad_norm": 0.27032291889190674, "learning_rate": 0.0002, "loss": 0.6735, "step": 975 }, { "epoch": 8.0, "grad_norm": 0.35773584246635437, "learning_rate": 0.0002, "loss": 0.7105, "step": 1000 }, { "epoch": 8.2, "grad_norm": 0.6158097982406616, "learning_rate": 0.0002, "loss": 0.6855, "step": 1025 }, { "epoch": 8.4, "grad_norm": 0.3763855993747711, "learning_rate": 0.0002, "loss": 0.6066, "step": 1050 }, { "epoch": 8.6, "grad_norm": 0.3213497996330261, "learning_rate": 0.0002, "loss": 0.623, "step": 1075 }, { "epoch": 8.8, "grad_norm": 0.3130660355091095, "learning_rate": 0.0002, "loss": 0.587, "step": 1100 }, { "epoch": 9.0, "grad_norm": 0.49706026911735535, "learning_rate": 0.0002, "loss": 0.6161, "step": 1125 }, { "epoch": 9.2, "grad_norm": 0.606447696685791, "learning_rate": 0.0002, "loss": 0.5802, "step": 1150 }, { "epoch": 9.4, "grad_norm": 0.42242899537086487, "learning_rate": 0.0002, "loss": 0.5627, "step": 1175 }, { "epoch": 9.6, "grad_norm": 0.37915894389152527, "learning_rate": 0.0002, "loss": 0.5408, "step": 1200 }, { "epoch": 9.8, "grad_norm": 0.3458578586578369, "learning_rate": 0.0002, "loss": 0.524, "step": 1225 }, { "epoch": 10.0, "grad_norm": 0.5249849557876587, "learning_rate": 0.0002, "loss": 0.5091, "step": 1250 } ], "logging_steps": 25, "max_steps": 1250, "num_input_tokens_seen": 0, "num_train_epochs": 10, "save_steps": 25, "total_flos": 1.3841243942078054e+17, "train_batch_size": 2, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:188545676647dedb5169b9babcc2e9502b9f54c0f14a0326dd64309f454eaf2fsize 4984README.md+201-3
adapter_config.jsonAdded+29
adapter_model.safetensorsAdded+3
optimizer.ptAdded+3
rng_state.pthAdded+3
scheduler.ptAdded+3
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer_config.jsonAdded+42
trainer_state.jsonAdded+371
training_args.binAdded+3