Run this model with HF Jobs
Run rsh-raj/description_influxdb_codellama 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/rsh-raj/description_influxdb_codellama. 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/rsh-raj/description_influxdb_codellama 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 rsh-raj/description_influxdb_codellama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use rsh-raj/description_influxdb_codellama with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("codellama/CodeLlama-7b-Instruct-hf") model = PeftModel.from_pretrained(base_model, "rsh-raj/description_influxdb_codellama") - Notebooks
- Google Colab
- Kaggle
Upload 8 files
Browse filesFiles changed (8)
- README.mdAdded+202
- adapter_config.jsonAdded+37
- adapter_model.safetensorsAdded+3
- special_tokens_map.jsonAdded+30
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+86
- trainer_state.jsonAdded+278
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202---base_model: codellama/CodeLlama-7b-Instruct-hflibrary_name: peft---
# 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 Model
Use 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.14.012345678910111213141516171819202122232425262728293031323334353637{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "codellama/CodeLlama-7b-Instruct-hf", "bias": "none", "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": 16, "lora_bias": false, "lora_dropout": 0, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 16, "rank_pattern": {}, "revision": null, "target_modules": [ "v_proj", "gate_proj", "up_proj", "k_proj", "q_proj", "down_proj", "o_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:c06cb6430b0661c7cbc979fcdfe90e100a416fe0bd30c33f754d18235cf65101size 159967880123456789101112131415161718192021222324252627282930{ "additional_special_tokens": [ "▁<PRE>", "▁<MID>", "▁<SUF>", "▁<EOT>" ], "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": "<unk>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:45ccb9c8b6b561889acea59191d66986d314e7cbd6a78abc6e49b139ca91c1e6size 5000581234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ "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 }, "32007": { "content": "▁<PRE>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32008": { "content": "▁<SUF>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32009": { "content": "▁<MID>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32010": { "content": "▁<EOT>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "▁<PRE>", "▁<MID>", "▁<SUF>", "▁<EOT>" ], "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 | trim + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content | trim + ' ' + eos_token }}{% endif %}{% endfor %}", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "eot_token": "▁<EOT>", "extra_special_tokens": {}, "fill_token": "<FILL_ME>", "legacy": null, "middle_token": "▁<MID>", "model_max_length": 16384, "pad_token": "<unk>", "padding_side": "right", "prefix_token": "▁<PRE>", "sp_model_kwargs": {}, "suffix_token": "▁<SUF>", "tokenizer_class": "CodeLlamaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": false}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278{ "best_metric": null, "best_model_checkpoint": null, "epoch": 5.0, "eval_steps": 500, "global_step": 350, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.14285714285714285, "grad_norm": 0.16038592159748077, "learning_rate": 9.855072463768117e-05, "loss": 1.4204, "step": 10 }, { "epoch": 0.2857142857142857, "grad_norm": 0.17179173231124878, "learning_rate": 9.565217391304348e-05, "loss": 1.1775, "step": 20 }, { "epoch": 0.42857142857142855, "grad_norm": 0.08739925920963287, "learning_rate": 9.27536231884058e-05, "loss": 1.0179, "step": 30 }, { "epoch": 0.5714285714285714, "grad_norm": 0.07866077125072479, "learning_rate": 8.985507246376813e-05, "loss": 0.9906, "step": 40 }, { "epoch": 0.7142857142857143, "grad_norm": 0.07883835583925247, "learning_rate": 8.695652173913044e-05, "loss": 0.9284, "step": 50 }, { "epoch": 0.8571428571428571, "grad_norm": 0.090563103556633, "learning_rate": 8.405797101449276e-05, "loss": 0.9132, "step": 60 }, { "epoch": 1.0, "grad_norm": 0.09789688140153885, "learning_rate": 8.115942028985508e-05, "loss": 0.9244, "step": 70 }, { "epoch": 1.1428571428571428, "grad_norm": 0.10891690105199814, "learning_rate": 7.82608695652174e-05, "loss": 0.8745, "step": 80 }, { "epoch": 1.2857142857142856, "grad_norm": 0.11586800217628479, "learning_rate": 7.536231884057971e-05, "loss": 0.9026, "step": 90 }, { "epoch": 1.4285714285714286, "grad_norm": 0.12981989979743958, "learning_rate": 7.246376811594203e-05, "loss": 0.8574, "step": 100 }, { "epoch": 1.5714285714285714, "grad_norm": 0.13366709649562836, "learning_rate": 6.956521739130436e-05, "loss": 0.8741, "step": 110 }, { "epoch": 1.7142857142857144, "grad_norm": 0.1530817747116089, "learning_rate": 6.666666666666667e-05, "loss": 0.834, "step": 120 }, { "epoch": 1.8571428571428572, "grad_norm": 0.1643722504377365, "learning_rate": 6.376811594202898e-05, "loss": 0.8404, "step": 130 }, { "epoch": 2.0, "grad_norm": 0.1352159082889557, "learning_rate": 6.086956521739131e-05, "loss": 0.8347, "step": 140 }, { "epoch": 2.142857142857143, "grad_norm": 0.12587201595306396, "learning_rate": 5.797101449275363e-05, "loss": 0.7948, "step": 150 }, { "epoch": 2.2857142857142856, "grad_norm": 0.1534753441810608, "learning_rate": 5.507246376811594e-05, "loss": 0.8329, "step": 160 }, { "epoch": 2.4285714285714284, "grad_norm": 0.14781303703784943, "learning_rate": 5.217391304347826e-05, "loss": 0.7962, "step": 170 }, { "epoch": 2.571428571428571, "grad_norm": 0.15119098126888275, "learning_rate": 4.9275362318840584e-05, "loss": 0.7736, "step": 180 }, { "epoch": 2.7142857142857144, "grad_norm": 0.1631895750761032, "learning_rate": 4.63768115942029e-05, "loss": 0.7662, "step": 190 }, { "epoch": 2.857142857142857, "grad_norm": 0.17577259242534637, "learning_rate": 4.347826086956522e-05, "loss": 0.7812, "step": 200 }, { "epoch": 3.0, "grad_norm": 0.18463444709777832, "learning_rate": 4.057971014492754e-05, "loss": 0.8424, "step": 210 }, { "epoch": 3.142857142857143, "grad_norm": 0.17774902284145355, "learning_rate": 3.7681159420289856e-05, "loss": 0.7543, "step": 220 }, { "epoch": 3.2857142857142856, "grad_norm": 0.2195262461900711, "learning_rate": 3.478260869565218e-05, "loss": 0.7562, "step": 230 }, { "epoch": 3.4285714285714284, "grad_norm": 0.20040994882583618, "learning_rate": 3.188405797101449e-05, "loss": 0.7915, "step": 240 }, { "epoch": 3.571428571428571, "grad_norm": 0.19015635550022125, "learning_rate": 2.8985507246376814e-05, "loss": 0.7765, "step": 250 }, { "epoch": 3.7142857142857144, "grad_norm": 0.1948482096195221, "learning_rate": 2.608695652173913e-05, "loss": 0.7457, "step": 260 }, { "epoch": 3.857142857142857, "grad_norm": 0.21063944697380066, "learning_rate": 2.318840579710145e-05, "loss": 0.7467, "step": 270 }, { "epoch": 4.0, "grad_norm": 0.19954325258731842, "learning_rate": 2.028985507246377e-05, "loss": 0.7544, "step": 280 }, { "epoch": 4.142857142857143, "grad_norm": 0.1909305900335312, "learning_rate": 1.739130434782609e-05, "loss": 0.7501, "step": 290 }, { "epoch": 4.285714285714286, "grad_norm": 0.21013665199279785, "learning_rate": 1.4492753623188407e-05, "loss": 0.7076, "step": 300 }, { "epoch": 4.428571428571429, "grad_norm": 0.23697449266910553, "learning_rate": 1.1594202898550725e-05, "loss": 0.7284, "step": 310 }, { "epoch": 4.571428571428571, "grad_norm": 0.224265918135643, "learning_rate": 8.695652173913044e-06, "loss": 0.7559, "step": 320 }, { "epoch": 4.714285714285714, "grad_norm": 0.21599379181861877, "learning_rate": 5.797101449275362e-06, "loss": 0.7102, "step": 330 }, { "epoch": 4.857142857142857, "grad_norm": 0.22354136407375336, "learning_rate": 2.898550724637681e-06, "loss": 0.7552, "step": 340 }, { "epoch": 5.0, "grad_norm": 0.22937460243701935, "learning_rate": 0.0, "loss": 0.7409, "step": 350 } ], "logging_steps": 10, "max_steps": 350, "num_input_tokens_seen": 0, "num_train_epochs": 5, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 3.2986802715377664e+17, "train_batch_size": 20, "trial_name": null, "trial_params": null}README.mdAdded+202
adapter_config.jsonAdded+37
adapter_model.safetensorsAdded+3
special_tokens_map.jsonAdded+30
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+86
trainer_state.jsonAdded+278