| | --- |
| | license: mit |
| | base_model: |
| | - microsoft/phi-2 |
| | tags: |
| | - code |
| | - agent |
| | - python |
| | library_name: transformers |
| | --- |
| | # lucentcode-1-py |
| |
|
| | **lucentcode-1-py** is a Python-specialized code generation model fine-tuned from Microsoft’s Phi-2 (2.7B parameters). The model generates clean, idiomatic Python code tailored for coding assistants and developer tools. |
| |
|
| | ## Model Overview |
| |
|
| | lucentcode-1-py builds on Microsoft’s Phi-2, applying LoRA fine-tuning with a curated dataset of Python-only instructions and code outputs. It focuses on producing direct, usable Python code without formatting or explanations. |
| |
|
| | ## Intended Use |
| |
|
| | This model is optimized for scenarios requiring: |
| |
|
| | - Python code generation from natural language instructions |
| | - Integration in coding assistants or developer tools where GPU or powerful hardware is available |
| | - Experimental or research purposes involving code generation tasks |
| |
|
| | ## Input and Output |
| |
|
| | **Input:** |
| | Plain text prompts containing instructions or code generation requests in natural language, specifically targeting Python code. |
| |
|
| | **Output:** |
| | Raw Python code matching the input instruction, without markdown formatting or supplementary explanations. |
| |
|
| | ## Limitations |
| |
|
| | - Designed exclusively for Python code generation; other programming languages are not supported. |
| | - Not intended for conversational tasks or chat-based interactions. |
| | - Complex or multi-file projects may require manual review and editing. |
| | - Requires GPU or capable hardware for practical inference speed; CPU performance is limited. |
| |
|
| | ## Training and Licensing |
| |
|
| | - Base model: Microsoft Phi-2 (2.7B parameters) |
| | - Fine-tuning method: LoRA (Low-Rank Adaptation) |
| | - Dataset: Curated Python-only instruction-to-code pairs |
| | - License: Same as Microsoft Phi-2, with full attribution to Microsoft |
| |
|
| | ## Resources and Attribution |
| |
|
| | - Microsoft Phi-2 Model: https://huggingface.co/microsoft/phi-2 |
| | - Lucid Core Principles: Clarity, efficiency, modularity in AI development and deployment |