Downloads · 30 days
0
praveends/migration-copilot-phi-3-5-mini-instruct
migration-copilot-phi-3-5-mini-instruct is a machine learning model from praveends. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Fine-tuned Phi-3.5-mini-instruct for enterprise SQL/HiveQL/PL-SQL/Stored Procedure → PySpark migration.
Downloads · 30 days
0
Access
Public
Updated Jul 4, 2026
Repo size
13.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors12.6 MB · 75%
From the Hugging Face model README
Fine-tuned Phi-3.5-mini-instruct for enterprise SQL/HiveQL/PL-SQL/Stored Procedure → PySpark migration.
Part of the Enterprise Migration Copilot project.
Evaluated on 480 held-out scripts (120 per language), never seen during training:
| Language | Pass Rate |
|---|---|
| SQL | 64% |
| HiveQL | 74% |
| PL/SQL | 57% |
| Stored Procedure | 32% |
| Overall | 57% |
Metrics: syntax_valid AND has_pyspark_ops AND semantic_sim (60% table name coverage).
Best fine-tuned model across all 3 models trained in this project.
This model expects the exact fine-tuning prompt format:
### Instruction:
Convert the following {SOURCE_LANGUAGE} code to PySpark.
Difficulty: {difficulty}
### Input:
{source_code}
### Response:
Input (PL/SQL):
DECLARE
CURSOR c_emp IS
SELECT emp_id, salary FROM employees WHERE dept_id = 10;
BEGIN
FOR rec IN c_emp LOOP
DBMS_OUTPUT.PUT_LINE(rec.emp_id || ': ' || rec.salary);
END LOOP;
END;
Output (PySpark):
from pyspark.sql import functions as F
df = spark.table('employees')
emp_df = df.filter(F.col('dept_id') == 10).select('emp_id', 'salary')
for row in emp_df.collect():
print(f"{row['emp_id']}: {row['salary']}")