Run this model with HF Jobs
Run arnavgrg/codealpaca-qlora 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/arnavgrg/codealpaca-qlora. 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/arnavgrg/codealpaca-qlora 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/arnavgrg/codealpaca-qlora. Ask me which benchmark to run, then save the scores and the per-example results to a new 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/arnavgrg/codealpaca-qlora. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use arnavgrg/codealpaca-qlora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use arnavgrg/codealpaca-qlora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "arnavgrg/codealpaca-qlora") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files29 unmodified lines3031323334353629 unmodified linesI fine-tuned base Llama-2-7b using LoRA with 4 bit quantization on a single T4 GPU, which cost approximately $3 to trainon Predibase.Dataset: https://github.com/sahil280114/codealpacaTo use these weights:```python29 unmodified lines30313233343536373829 unmodified linesI fine-tuned base Llama-2-7b using LoRA with 4 bit quantization on a single T4 GPU, which cost approximately $3 to trainon Predibase.Dataset and training parameters are borrowed from: https://github.com/sahil280114/codealpaca,but all of these parameters including DeepSpeed can be directly used with [Ludwig](https://ludwig.ai/latest/), the open-sourcetoolkit for LLMs that Predibase is built on.To use these weights:```python
README.md+3-1