Downloads · 30 days
0
pranav-pvnn/codellama-7b-python-ai-assistant-LoRA-adapters
codellama-7b-python-ai-assistant-LoRA-adapters is a text generation model from pranav-pvnn. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Fine-tuned CodeLlama-7B model specialized for Python programming assistance using QLoRA (Quantized Low-Rank Adaptation).
Downloads · 30 days
0
Access
Public
Updated Oct 3, 2025
Repo size
1.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
Fine-tuned CodeLlama-7B model specialized for Python programming assistance using QLoRA (Quantized Low-Rank Adaptation).
This repository contains LoRA adapters only. To use, merge the adapters with the base model.
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained( model_name="pranav-pvnn/codellama-7b-python-ai-assistant", max_seq_length=2048, load_in_4bit=True, )
prompt = "### Instruction:\nWrite a Python function to calculate factorial.\n### Response:\n" inputs = tokenizer(prompt, return_tensors="pt").to("cuda") outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs, skip_special_tokens=True))
@misc{codellama-7b-python-assistant, author = {pranav-pvnn}, title = {CodeLlama 7B Python AI Assistant}, year = {2025}, publisher = {HuggingFace}, howpublished = {\url{https://huggingface.co/pranav-pvnn/codellama-7b-python-ai-assistant}} }