Run this model with HF Jobs
Run amztheory/falcon-7b-code-python 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/amztheory/falcon-7b-code-python. 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/amztheory/falcon-7b-code-python 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 amztheory/falcon-7b-code-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use amztheory/falcon-7b-code-python with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-7b-instruct") model = PeftModel.from_pretrained(base_model, "amztheory/falcon-7b-code-python") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (19)
- README.mdAdded+71
- adapter_config.jsonAdded+28
- adapter_model.safetensorsAdded+3
- runs/May24_05-06-15_eb729ab69650/events.out.tfevents.1716527183.eb729ab69650.6573.0Added+3
- runs/May24_05-07-25_eb729ab69650/events.out.tfevents.1716527252.eb729ab69650.6946.0Added+3
- runs/May24_05-08-48_eb729ab69650/events.out.tfevents.1716527335.eb729ab69650.7379.0Added+3
- runs/May24_05-11-32_eb729ab69650/events.out.tfevents.1716527499.eb729ab69650.8194.0Added+3
- runs/May24_05-14-18_eb729ab69650/events.out.tfevents.1716527665.eb729ab69650.8970.0Added+3
- runs/May24_05-19-09_eb729ab69650/events.out.tfevents.1716527956.eb729ab69650.10277.0Added+3
- runs/May24_05-21-12_eb729ab69650/events.out.tfevents.1716528079.eb729ab69650.10876.0Added+3
- runs/May24_05-23-22_eb729ab69650/events.out.tfevents.1716528209.eb729ab69650.11507.0Added+3
- runs/May24_06-24-01_eb729ab69650/events.out.tfevents.1716531848.eb729ab69650.27550.0Added+3
- runs/May24_07-06-31_eb729ab69650/events.out.tfevents.1716534425.eb729ab69650.38261.0Added+3
- runs/May24_08-16-01_eb729ab69650/events.out.tfevents.1716538633.eb729ab69650.55891.0Added+3
- special_tokens_map.jsonAdded+23
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+123
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---license: apache-2.0library_name: pefttags:- trl- sft- generated_from_trainerbase_model: tiiuae/falcon-7b-instructmodel-index:- name: falcon-7b-code-python 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. -->
# falcon-7b-code-python
This model is a fine-tuned version of [tiiuae/falcon-7b-instruct](https://huggingface.co/tiiuae/falcon-7b-instruct) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 1.1486
## 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: 2e-05- train_batch_size: 6- eval_batch_size: 6- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 24- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:------:|:----:|:---------------:|| 1.3986 | 0.3183 | 30 | 1.4874 || 1.3762 | 0.6366 | 60 | 1.4038 || 1.2544 | 0.9549 | 90 | 1.3065 || 1.1233 | 1.2732 | 120 | 1.2405 || 1.1611 | 1.5915 | 150 | 1.1918 || 1.1243 | 1.9098 | 180 | 1.1603 || 1.0911 | 2.2281 | 210 | 1.1504 || 1.1027 | 2.5464 | 240 | 1.1489 || 1.1615 | 2.8647 | 270 | 1.1486 |
### Framework versions
- PEFT 0.11.1- Transformers 4.41.0- Pytorch 2.3.0+cu121- Datasets 2.19.1- Tokenizers 0.19.112345678910111213141516171819202122232425262728{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "tiiuae/falcon-7b-instruct", "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": [ "query_key_value" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:883bac4f0d3f6db65c50e6cf5ebdaac82e826046849b7d4993cf99bb0d89ec96size 37758384123version https://git-lfs.github.com/spec/v1oid sha256:39d0db223f26cd4b2dfad89d6407746c7e858f8dc8324c45350225a7fcff34b9size 6056123version https://git-lfs.github.com/spec/v1oid sha256:a41624668392e92ef023773f4a19aa63974a4aa6fc4fabd5edbd0998fa0b79b4size 6056123version https://git-lfs.github.com/spec/v1oid sha256:063b4a502ff06007cd427d9026abcea81c9b5b9423552731f03929ce4bea300bsize 7002123version https://git-lfs.github.com/spec/v1oid sha256:9737526ce7d3c020a01d9a25d842d55b1e8a6fc1e7c1f6f434e3d20c37caa6a5size 6404123version https://git-lfs.github.com/spec/v1oid sha256:4298d4359f90412a07bc9636a6132dddb2d5cc75862000c0e9d388d0d1522d37size 7945123version https://git-lfs.github.com/spec/v1oid sha256:8b5cb4dda68dc125b5f329619e07234aabacb29adea34234487b9da04e84f113size 6468123version https://git-lfs.github.com/spec/v1oid sha256:1690855beb96755a538ec3ea57e42b73f31175296c5e8dd6da3da0060e190694size 6263123version https://git-lfs.github.com/spec/v1oid sha256:11b2dfad60ac11ff95a51375b9ed680dd01dec75f38d51ac303a72c770156d00size 20543123version https://git-lfs.github.com/spec/v1oid sha256:2d5b2bfb94cd2ded40614e57bc131bd177c0a42a2f49240a48722b37c2eac7e4size 11545123version https://git-lfs.github.com/spec/v1oid sha256:13215d4cf533545ef94f1b88ad0e0c74744fbef11838b85334b79b3216900573size 19874123version https://git-lfs.github.com/spec/v1oid sha256:24709ddb8e8ae329efa95b85ee5f5d887008071abf252e90b7257f73025e02ffsize 206161234567891011121314151617181920212223{ "additional_special_tokens": [ ">>TITLE<<", ">>ABSTRACT<<", ">>INTRODUCTION<<", ">>SUMMARY<<", ">>COMMENT<<", ">>ANSWER<<", ">>QUESTION<<", ">>DOMAIN<<", ">>PREFIX<<", ">>SUFFIX<<", ">>MIDDLE<<" ], "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>"}123version https://git-lfs.github.com/spec/v1oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347size 499723123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": ">>TITLE<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": ">>ABSTRACT<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": ">>INTRODUCTION<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": ">>SUMMARY<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "4": { "content": ">>COMMENT<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "5": { "content": ">>ANSWER<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "6": { "content": ">>QUESTION<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "7": { "content": ">>DOMAIN<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "8": { "content": ">>PREFIX<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "9": { "content": ">>SUFFIX<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "10": { "content": ">>MIDDLE<<", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "11": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ ">>TITLE<<", ">>ABSTRACT<<", ">>INTRODUCTION<<", ">>SUMMARY<<", ">>COMMENT<<", ">>ANSWER<<", ">>QUESTION<<", ">>DOMAIN<<", ">>PREFIX<<", ">>SUFFIX<<", ">>MIDDLE<<" ], "clean_up_tokenization_spaces": true, "eos_token": "<|endoftext|>", "model_input_names": [ "input_ids", "attention_mask" ], "model_max_length": 512, "pad_token": "<|endoftext|>", "tokenizer_class": "PreTrainedTokenizerFast"}123version https://git-lfs.github.com/spec/v1oid sha256:0af1836a121709c3b1331a8150f460b160a58873a6136f141fc4be2d3a3788c3size 5112README.mdAdded+71
adapter_config.jsonAdded+28
adapter_model.safetensorsAdded+3
runs/May24_05-06-15_eb729ab69650/events.out.tfevents.1716527183.eb729ab69650.6573.0Added+3
runs/May24_05-07-25_eb729ab69650/events.out.tfevents.1716527252.eb729ab69650.6946.0Added+3
runs/May24_05-08-48_eb729ab69650/events.out.tfevents.1716527335.eb729ab69650.7379.0Added+3
runs/May24_05-11-32_eb729ab69650/events.out.tfevents.1716527499.eb729ab69650.8194.0Added+3
runs/May24_05-14-18_eb729ab69650/events.out.tfevents.1716527665.eb729ab69650.8970.0Added+3
runs/May24_05-19-09_eb729ab69650/events.out.tfevents.1716527956.eb729ab69650.10277.0Added+3
runs/May24_05-21-12_eb729ab69650/events.out.tfevents.1716528079.eb729ab69650.10876.0Added+3
runs/May24_05-23-22_eb729ab69650/events.out.tfevents.1716528209.eb729ab69650.11507.0Added+3
runs/May24_06-24-01_eb729ab69650/events.out.tfevents.1716531848.eb729ab69650.27550.0Added+3
runs/May24_07-06-31_eb729ab69650/events.out.tfevents.1716534425.eb729ab69650.38261.0Added+3
runs/May24_08-16-01_eb729ab69650/events.out.tfevents.1716538633.eb729ab69650.55891.0Added+3
special_tokens_map.jsonAdded+23
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+123
training_args.binAdded+3