File size: 1,981 Bytes
b83d362
 
 
 
 
 
 
 
88cdb5d
b83d362
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
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