Run this model with HF Jobs
Run SOULAMA/CodeLlama-7b-Python-hf-fine-tuning 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/SOULAMA/CodeLlama-7b-Python-hf-fine-tuning. 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/SOULAMA/CodeLlama-7b-Python-hf-fine-tuning 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 SOULAMA/CodeLlama-7b-Python-hf-fine-tuning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SOULAMA/CodeLlama-7b-Python-hf-fine-tuning with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SOULAMA/CodeLlama-7b-Python-hf-fine-tuning", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 10
Browse filesFiles changed (6)
- README.mdAdded+58
- adapter_config.jsonAdded+48
- adapter_model.safetensorsAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+28
- training_args.binAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: codellama/CodeLlama-7b-Python-hflibrary_name: transformersmodel_name: CodeLlama-7b-Python-hf-fine-tuningtags:- generated_from_trainer- sft- trllicence: license---
# Model Card for CodeLlama-7b-Python-hf-fine-tuning
This model is a fine-tuned version of [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf).It has been trained using [TRL](https://github.com/huggingface/trl).
## Quick start
```pythonfrom transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"generator = pipeline("text-generation", model="SOULAMA/CodeLlama-7b-Python-hf-fine-tuning", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
This model was trained with SFT.
### Framework versions
- TRL: 1.5.1- Transformers: 5.9.0- Pytorch: 2.10.0+cu128- Datasets: 4.8.5- Tokenizers: 0.22.2
## Citations
Cite TRL as: ```bibtex@software{vonwerra2020trl, title = {{TRL: Transformers Reinforcement Learning}}, author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin}, license = {Apache-2.0}, url = {https://github.com/huggingface/trl}, year = {2020}}```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "codellama/CodeLlama-7b-Python-hf", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "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": 32, "lora_bias": false, "lora_dropout": 0.05, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "peft_version": "0.19.1", "qalora_group_size": 16, "r": 16, "rank_pattern": {}, "revision": null, "target_modules": [ "k_proj", "o_proj", "v_proj", "q_proj", "gate_proj", "down_proj", "up_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:7b5041a39ea37b385aba72d29877d7d559371ef07b334f7e9552d53025c44e8fsize 8001401612345678910111213141516171819202122232425262728{ "add_prefix_space": true, "backend": "tokenizers", "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "eot_token": "▁<EOT>", "extra_special_tokens": [ "▁<PRE>", "▁<MID>", "▁<SUF>", "▁<EOT>", "<FILL_ME>" ], "fill_token": "<FILL_ME>", "is_local": false, "legacy": null, "local_files_only": false, "middle_token": "▁<MID>", "model_max_length": 1000000000000000019884624838656, "pad_token": "</s>", "prefix_token": "▁<PRE>", "sp_model_kwargs": {}, "suffix_token": "▁<SUF>", "tokenizer_class": "CodeLlamaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": false}123version https://git-lfs.github.com/spec/v1oid sha256:1e7b912e67686361e1a72a4152a111d9e9f762756c0613faf4fed255c3f5d0b6size 5841README.mdAdded+58
adapter_config.jsonAdded+48
adapter_model.safetensorsAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+28
training_args.binAdded+3