Instructions to use autoprogrammer/qwen-0.5b-safecoder-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use autoprogrammer/qwen-0.5b-safecoder-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "autoprogrammer/qwen-0.5b-safecoder-lora") - Notebooks
- Google Colab
- Kaggle