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 "prithivMLmods/OpenSCAD-Code-Qwen3.5-Preview-NVFP4" \
    --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": "prithivMLmods/OpenSCAD-Code-Qwen3.5-Preview-NVFP4",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
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 "prithivMLmods/OpenSCAD-Code-Qwen3.5-Preview-NVFP4" \
        --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": "prithivMLmods/OpenSCAD-Code-Qwen3.5-Preview-NVFP4",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
Quick Links

OpenSCAD-Code-Qwen3.5-Preview-NVFP4

OpenSCAD-Code-Qwen3.5-Preview-NVFP4 is a 9-billion-parameter NVFP4-quantized build of OpenSCAD-Code-Qwen3.5-Preview, based on Qwen3.5-9B and fine-tuned on approximately 11,000 samples from the prithivMLmods/OpenSCAD-Code-to-3D-50K-HF dataset for text-to-OpenSCAD (.scad) code generation. It translates natural language descriptions into parametric 3D modeling code for geometric shapes, mechanical components, functional objects, and structural designs. Quantized using GPTQ (Accurate Post-Training Quantization for Generative Pre-trained Transformers), GPTQ calibration helps stabilize and optimize NVFP4 compression, preserving accuracy close to the full-precision weights while reducing memory usage and accelerating inference on NVFP4-capable hardware. This remains a preview and experimental model, and generated code may require manual inspection, debugging, and refinement.

This model is experimental and currently in preview. It may generate artifacts, as it is still under training. A stable version will be released soon.

MTP β€” Speculative Decoding: Yes

Quantization Recipe

The model is quantized using the GPTQModifier with the NVFP4 quantization scheme.

default_stage:
  default_modifiers:
    GPTQModifier:
      targets: [Linear]
      ignore: [lm_head, 're:.*visual.*']
      scheme: NVFP4
      weight_observer: imatrix_mse
      bypass_divisibility_checks: false
      requires_calibration_data: true
      block_size: 128
      dampening_frac: 0.01
      batched_quantization: auto

Model Files

File Name File Type File Size File Link Description
chat_template.jinja Jinja Template 7.76 kB Link Chat template for formatting conversations and prompts.
config.json JSON 9.47 kB Link Core model architecture and configuration parameters.
generation_config.json JSON 153 Bytes Link Default text generation parameters (e.g., temperature, top_p).
model-00001-of-00002.safetensors Safetensors 4.99 GB Link Model weight shard 1/2. Required to load the model.
model-00002-of-00002.safetensors Safetensors 3.89 GB Link Model weight shard 2/2. Required to load the model.
model.safetensors.index.json JSON 153 kB Link Index file mapping model weights to their respective shards.
model_mtp.safetensors Safetensors 487 MB Link Multi-Token Prediction (MTP) auxiliary model weights, used to speed up generation.
processor_config.json JSON 1.33 kB Link Configuration for the multimodal (vision/image) processor.
recipe.yaml YAML 334 Bytes Link Configuration file detailing the quantization or training recipe (e.g., NVFP4 parameters).
tokenizer.json JSON 20 MB Link Complete tokenizer vocabulary and encoding rules.
tokenizer_config.json JSON 1.33 kB Link Tokenizer-specific configuration parameters.

License and Attribution

This model is based on and/or incorporates the following open-source projects and models:

This model is released under the Apache License 2.0.

Downloads last month
2
Safetensors
Model size
10B params
Tensor type
BF16
Β·
U8
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for prithivMLmods/OpenSCAD-Code-Qwen3.5-Preview-NVFP4

Finetuned
Qwen/Qwen3.5-9B
Quantized
(3)
this model

Dataset used to train prithivMLmods/OpenSCAD-Code-Qwen3.5-Preview-NVFP4

Collections including prithivMLmods/OpenSCAD-Code-Qwen3.5-Preview-NVFP4