Instructions to use Tanneru/CodeLlama-7b-Python-hf-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Tanneru/CodeLlama-7b-Python-hf-ft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("codellama/CodeLlama-7b-Python-hf") model = PeftModel.from_pretrained(base_model, "Tanneru/CodeLlama-7b-Python-hf-ft") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -139,6 +139,13 @@ with torch.inference_mode():
|
|
| 139 |
|
| 140 |
print(tokenizer.decode(out[0], skip_special_tokens=True))
|
| 141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
|
| 143 |
@misc{tanneru2025codellamapythonft,
|
| 144 |
title = {CodeLlama-7b-Python-hf-ft},
|
|
@@ -148,3 +155,4 @@ print(tokenizer.decode(out[0], skip_special_tokens=True))
|
|
| 148 |
howpublished = {\url{https://huggingface.co/Tanneru/CodeLlama-7b-Python-hf-ft}}
|
| 149 |
}
|
| 150 |
|
|
|
|
|
|
| 139 |
|
| 140 |
print(tokenizer.decode(out[0], skip_special_tokens=True))
|
| 141 |
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
## Citation
|
| 145 |
+
|
| 146 |
+
If you use this model in your research or project, please cite it:
|
| 147 |
+
|
| 148 |
+
```bibtex
|
| 149 |
|
| 150 |
@misc{tanneru2025codellamapythonft,
|
| 151 |
title = {CodeLlama-7b-Python-hf-ft},
|
|
|
|
| 155 |
howpublished = {\url{https://huggingface.co/Tanneru/CodeLlama-7b-Python-hf-ft}}
|
| 156 |
}
|
| 157 |
|
| 158 |
+
```
|