SamirXR/yzy-python-0.5b

Hugging Face
TEXT GENERATIONPricing:Input $0.04 / Cached $0.008 / Output $0.08Concurrent Unit Cost:1Model Size:0.5BQuant:BF16Context Size:32kTool Calling:SupportedPublished:Mar 22, 2026License:mitArchitecture:Transformer Open Weights Featherless Exclusive Warm

The SamirXR/yzy-python-0.5b is a 0.5 billion parameter language model fine-tuned for Python code generation and instruction-following, built upon the Qwen2-0.5B-Instruct base model. Optimized for lightweight scripting help and small coding copilots, it leverages QLoRA (4-bit) fine-tuning on an Alpaca-format Python instruction dataset. This model is designed for fast local inference and experimentation, making it suitable for hackathons and resource-constrained environments.

Loading preview...

Model Overview

The SamirXR/yzy-python-0.5b is a compact 0.5 billion parameter language model specifically fine-tuned for Python-centric tasks. It is based on the Qwen2-0.5B-Instruct architecture and utilizes QLoRA (4-bit) fine-tuning on a dataset of Alpaca-format Python instructions.

Key Capabilities

  • Python Code Generation: Excels at generating Python code snippets and functions based on given instructions.
  • Instruction Following: Designed to accurately follow Python-related coding instructions.
  • Lightweight Inference: Optimized for efficient execution on local machines with minimal resources.

Training Details

The model was fine-tuned using QLoRA with 4-bit NF4 quantization. Key training parameters included a LoRA rank of 8, an alpha of 16, and a learning rate of 2e-4 over 2 epochs. The training utilized the iamtarun/python_code_instructions_18k_alpaca dataset, formatted with ### Instruction: and ### Response: prompts.

Good For

  • Small Coding Copilots: Ideal for integrating into applications requiring basic Python code assistance.
  • Scripting Help: Can generate utility scripts or functions for various Python tasks.
  • Local Experimentation: Suitable for developers and researchers experimenting with small, specialized language models.
  • Hackathons: Its lightweight nature and Python focus make it a good candidate for rapid prototyping in hackathon environments.