How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "igor273/phi-4-genaiscript" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "igor273/phi-4-genaiscript",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "igor273/phi-4-genaiscript" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "igor273/phi-4-genaiscript",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Fine-tuned phi-4 on GenAIScript

This model is a fine-tuned version of microsoft/phi-4 on the GenAIScript training dataset. The base phi-4 model has no prior knowledge of the GenAIScript scripting language, as it was not part of its pretraining data. This fine-tuned version has been specifically trained to understand and generate valid GenAIScript code.

Model Description

  • Base model: microsoft/phi-4
  • Fine-tuned on: igor273/genaiscript_training_dataset
  • Task: Code generation and completion for GenAIScript
  • Quantized: Yes — optimized for local inference on resource-constrained machines

Dataset

The dataset was created from official Microsoft GenAIScript documentation and real-world code snippets. It includes:

  • Script generation examples
  • Function usage and syntax patterns
  • Control structures and logic flows
  • Valid use cases and best practices

Capabilities

  • Fully understands GenAIScript syntax and semantics
  • Can generate end-to-end scripts from natural language prompts
  • Can assist in learning and exploring GenAIScript capabilities

Limitations

  • May require updates if the GenAIScript specification evolves
  • Quantization may reduce generation precision in some edge cases

License

The base model phi-4 and the dataset are subject to their respective licenses. This fine-tuned version inherits those terms.


Maintained by @igor273

Downloads last month
36
Safetensors
Model size
15B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for igor273/phi-4-genaiscript

Base model

microsoft/phi-4
Quantized
(86)
this model
Quantizations
1 model