Text Generation
Transformers
Safetensors
English
qwen3
code-generation
svg
fine-tuned
fp16
vllm
merged
conversational
text-generation-inference
Instructions to use vinoku89/svg-code-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vinoku89/svg-code-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vinoku89/svg-code-generator") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("vinoku89/svg-code-generator") model = AutoModelForCausalLM.from_pretrained("vinoku89/svg-code-generator", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vinoku89/svg-code-generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vinoku89/svg-code-generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vinoku89/svg-code-generator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/vinoku89/svg-code-generator
- SGLang
How to use vinoku89/svg-code-generator with 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 "vinoku89/svg-code-generator" \ --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": "vinoku89/svg-code-generator", "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 "vinoku89/svg-code-generator" \ --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": "vinoku89/svg-code-generator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use vinoku89/svg-code-generator with Docker Model Runner:
docker model run hf.co/vinoku89/svg-code-generator
Upload folder using huggingface_hub
Browse files
MLmodel
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
artifact_path: file:///home/vino/ML_Projects/End-to-end-llm-pipeline-huggingface/mlruns/710899643861413467/models/m-
|
| 2 |
flavors:
|
| 3 |
python_function:
|
| 4 |
env:
|
|
@@ -21,9 +21,9 @@ flavors:
|
|
| 21 |
transformers_version: 4.54.0
|
| 22 |
is_signature_from_type_hint: false
|
| 23 |
mlflow_version: 3.1.4
|
| 24 |
-
model_id: m-
|
| 25 |
model_size_bytes: 554888572
|
| 26 |
-
model_uuid: m-
|
| 27 |
prompts: null
|
| 28 |
run_id: c61be72e02f74b1c93cb4b20c16164a1
|
| 29 |
signature:
|
|
@@ -31,4 +31,4 @@ signature:
|
|
| 31 |
outputs: '[{"type": "string", "required": true}]'
|
| 32 |
params: null
|
| 33 |
type_hint_from_example: false
|
| 34 |
-
utc_time_created: '2025-07-26
|
|
|
|
| 1 |
+
artifact_path: file:///home/vino/ML_Projects/End-to-end-llm-pipeline-huggingface/mlruns/710899643861413467/models/m-ab39989523454f2786759297aba06b14/artifacts
|
| 2 |
flavors:
|
| 3 |
python_function:
|
| 4 |
env:
|
|
|
|
| 21 |
transformers_version: 4.54.0
|
| 22 |
is_signature_from_type_hint: false
|
| 23 |
mlflow_version: 3.1.4
|
| 24 |
+
model_id: m-ab39989523454f2786759297aba06b14
|
| 25 |
model_size_bytes: 554888572
|
| 26 |
+
model_uuid: m-ab39989523454f2786759297aba06b14
|
| 27 |
prompts: null
|
| 28 |
run_id: c61be72e02f74b1c93cb4b20c16164a1
|
| 29 |
signature:
|
|
|
|
| 31 |
outputs: '[{"type": "string", "required": true}]'
|
| 32 |
params: null
|
| 33 |
type_hint_from_example: false
|
| 34 |
+
utc_time_created: '2025-07-26 11:04:34.618339'
|