Run this model with HF Jobs
Run yvelos/llama-2-7b-int4-python-code-20k 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/yvelos/llama-2-7b-int4-python-code-20k. 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/yvelos/llama-2-7b-int4-python-code-20k 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 yvelos/llama-2-7b-int4-python-code-20k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use yvelos/llama-2-7b-int4-python-code-20k with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "yvelos/llama-2-7b-int4-python-code-20k") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse filesFiles changed (3)
- README.mdAdded+21
- adapter_config.jsonAdded+21
- adapter_model.binAdded+3
123456789101112131415161718192021---library_name: peft---## Training procedure
The following `bitsandbytes` quantization config was used during training:- load_in_8bit: False- load_in_4bit: True- 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: nf4- bnb_4bit_use_double_quant: False- bnb_4bit_compute_dtype: float32### Framework versions
- PEFT 0.4.0
- PEFT 0.4.0123456789101112131415161718192021{ "auto_mapping": null, "base_model_name_or_path": "NousResearch/Llama-2-7b-hf", "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layers_pattern": null, "layers_to_transform": null, "lora_alpha": 16, "lora_dropout": 0.1, "modules_to_save": null, "peft_type": "LORA", "r": 64, "revision": null, "target_modules": [ "q_proj", "v_proj" ], "task_type": "CAUSAL_LM"}123version https://git-lfs.github.com/spec/v1oid sha256:538a9a8b17e09d346f776997c7af527b4e4e6fab5d936df8ed42e5909263a56fsize 134264202README.mdAdded+21
adapter_config.jsonAdded+21
adapter_model.binAdded+3