Run this model with HF Jobs
Run Faradaylab/aria-code-light-llama2-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/Faradaylab/aria-code-light-llama2-python. Ask me which dataset to train on, then push the fine-tuned model to a new private 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/Faradaylab/aria-code-light-llama2-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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Faradaylab/aria-code-light-llama2-python. Ask me which benchmark to run, then save the scores and the per-example results to a new private dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Faradaylab/aria-code-light-llama2-python. Push it to a new private model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Faradaylab/aria-code-light-llama2-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Faradaylab/aria-code-light-llama2-python 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, "Faradaylab/aria-code-light-llama2-python") - Notebooks
- Google Colab
- Kaggle
Download README.md from Faradaylab/aria-code-light-llama2-python: direct link, hf CLI and curl.
- Browser
- Download file 1.77 kB
-
https://huggingface.co/Faradaylab/aria-code-light-llama2-python/resolve/main/README.md
- Command line
-
hf download hf://Faradaylab/aria-code-light-llama2-python/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/Faradaylab/aria-code-light-llama2-python/resolve/main/README.md
library_name: peft
license: apache-2.0
language:
- en
tags:
- llama
- llama2
- python
- code
pipeline_tag: text-generation
datasets:
- iamtarun/python_code_instructions_18k_alpaca
Aria Code Light is based on llama 2 chat. Training procedure
Aria Code light is a finetuned llama 2 chat HF on python dataset with over 18.000 tokens of coding prompts and answers. Our goal was to create a model which can run on a single GPU with more language skills and better coding performance than the initial LLama 2 especially in Python. ..
GPU used for training : NVIDIA A100.
....
Timing: Less than 24 hours.
.....
Method : Lora + PEFT
Update following LLAMA CODE 7B release.
As Meta just released LLAMA CODE 7B, and even a LLAMA CODE PYTHON, which is trained on a larger python dataset than Aria Code light, we still believe Aria Code light has a more user friendly approach by adding coding skills to a chat model. It has been noticed by many community users that specialized models in Coding often loose "non-coding" and natural language performance. That being said,we encourage you to try both and use the model which fit your needs better,everything done for the open source community is always useful. Congratulations to Meta Team for achieving this new milestone in "Coding LLMS" area.
Contact
Support : contact@faradaylab.fr
The following bitsandbytes quantization config was used during training:
- quant_method: bitsandbytes
- load_in_8bit: True
- load_in_4bit: False
- llm_int8_threshold: 6.0
- llm_int8_skip_modules: None
- llm_int8_enable_fp32_cpu_offload: False
- llm_int8_has_fp16_weight: False
- bnb_4bit_quant_type: fp4
- bnb_4bit_use_double_quant: False
- bnb_4bit_compute_dtype: float32
Framework versions
- PEFT 0.6.0.dev0