Instructions to use Harsha001/Unlimited-SVG-ROCmFPX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Harsha001/Unlimited-SVG-ROCmFPX with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX # Run inference directly in the terminal: llama cli -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX # Run inference directly in the terminal: llama cli -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX # Run inference directly in the terminal: ./build/bin/llama cli -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
Use Docker
docker model run hf.co/Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
- Llama new
- LM Studio
- Jan
- vLLM
How to use Harsha001/Unlimited-SVG-ROCmFPX with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Harsha001/Unlimited-SVG-ROCmFPX" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harsha001/Unlimited-SVG-ROCmFPX", "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
docker model run hf.co/Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
- Ollama
How to use Harsha001/Unlimited-SVG-ROCmFPX with Ollama:
ollama run hf.co/Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
- Unsloth Desktop
- Docker Model Runner
How to use Harsha001/Unlimited-SVG-ROCmFPX with Docker Model Runner:
docker model run hf.co/Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
- Lemonade
How to use Harsha001/Unlimited-SVG-ROCmFPX with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX
Run and chat with the model
lemonade run user.Unlimited-SVG-ROCmFPX-Q8_0_ROCMFPX
List all available models
lemonade list
- Atomic Chat
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX# Run inference directly in the terminal:
llama cli -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPXBuild from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX# Run inference directly in the terminal:
./build/bin/llama cli -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPXUse Docker
docker model run hf.co/Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPXUnlimited-SVG, ROCmFPX GGUF
baidu/Unlimited-SVG turns an image (an icon, a diagram, a chart, a drawing or a photo) into SVG code. It is built on the DeepSeek-OCR design: a 3B mixture-of-experts text model (64 experts, 6 active) reads one 2048 x 2048 view of the image through the DeepEncoder vision tower and writes the SVG. This repo has it quantized for the ROCmFPX llama.cpp fork (low-bit weight types for AMD GPUs, Vulkan and HIP/ROCm).
The model file needs the
unlimited-svgbranch of HarshaVardhan3002/ROCmFPX. Stock llama.cpp, LM Studio and Ollama will not load it. These files were checked on the CPU and have not been tested on AMD hardware yet.Not an official release of Baidu. All credit for the model goes to its authors.
Files
| File | Size | Weights | KL divergence vs BF16 on SVG text (lower is better) | Same top token as BF16 |
|---|---|---|---|---|
Unlimited-SVG-Q8_0_ROCMFPX.gguf |
3.04 GB | ROCmFPX 8-bit (Q8_0_ROCMFPX with tensor scales), token embedding stock Q8_0 |
0.0093 | 96.7% |
mmproj-Unlimited-SVG-F16.gguf |
0.83 GB | vision tower and projector, F16 (load with --mmproj, always needed) |
- | - |
- Image test: on two test images (shapes with a text label, and a bar chart with a title, value labels and axis labels), the 8-bit file wrote the same SVG as BF16: the same elements and text, colors within a few units and coordinates within 1 pixel.
- No 6-bit file: a 6-bit build (2.50 GB, KL divergence 0.017) wrote the chart's quarter labels twice, once in the wrong place, so it was not uploaded. The model is small; the 8-bit file is the one to use.
- Measured on: the BF16 SVG outputs of the test images, 256-token chunks, against the BF16 GGUF, CPU. On plain English text (40 chunks of 512 tokens of WikiText-2), which this model is not trained for, the 8-bit file scores 0.039 (88.5% same top token) and the 6-bit build 0.068 (84.4%).
How these were made
- BF16 GGUF and F16 vision projector converted with the fork's
convert_hf_to_gguf.py(branchunlimited-svg). The projector stores the model's own preprocessing: one 2048 x 2048 global view, no tiles, gray padding (as in the originalinfer()withbase_size = image_size = 2048,crop_mode = False). - Tokenizer checked against the original: the same token ids for a sample SVG.
LLAMA_ROCMFPX_TENSOR_SCALE=1 llama-quantize --token-embedding-type q8_0 --output-tensor-type q8_0_rocmfpxfrom the BF16 file. The tensor scale is a power-of-two scale per weight tensor; the runtime applies it, no setting is needed to run the file.
Run
git clone -b unlimited-svg https://github.com/HarshaVardhan3002/ROCmFPX && cd ROCmFPX
cmake -B build -DGGML_VULKAN=ON # or -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1151 (gfx1100 for RX 7900)
cmake --build build -j --target llama-mtmd-cli
build/bin/llama-mtmd-cli -m Unlimited-SVG-Q8_0_ROCMFPX.gguf --mmproj mmproj-Unlimited-SVG-F16.gguf -ngl 99 \
--jinja --image input.png -p "<__media__> SVG:" --temp 0 -n 30000 -c 32768 > output.svg
--jinjais needed: the model's chat template is a plain one that only the Jinja engine reads.- The prompt is the image followed by
SVG:, as in the original model. - Temperature: 0 to 0.3 for icons, diagrams and drawings; 0.5 to 0.8 for photos (from the original model card).
- The SVG is written in a 1024 x 1024 frame; the image is fitted inside it with its aspect ratio kept.
- Detailed images can need many thousands of tokens; raise
-nand-cfor them.
License
MIT, same as the base model. See LICENSE.
- Downloads last month
- -
8-bit
Model tree for Harsha001/Unlimited-SVG-ROCmFPX
Base model
baidu/Unlimited-SVG
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX# Run inference directly in the terminal: llama cli -hf Harsha001/Unlimited-SVG-ROCmFPX:Q8_0_ROCMFPX