Text Generation
Transformers
Safetensors
English
qwen3
code-generation
svg
fine-tuned
fp16
vllm
merged
conversational
text-generation-inference
Instructions to use amkyawdev/svg-code-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amkyawdev/svg-code-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amkyawdev/svg-code-generator") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("amkyawdev/svg-code-generator") model = AutoModelForCausalLM.from_pretrained("amkyawdev/svg-code-generator") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amkyawdev/svg-code-generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amkyawdev/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": "amkyawdev/svg-code-generator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/amkyawdev/svg-code-generator
- SGLang
How to use amkyawdev/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 "amkyawdev/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": "amkyawdev/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 "amkyawdev/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": "amkyawdev/svg-code-generator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use amkyawdev/svg-code-generator with Docker Model Runner:
docker model run hf.co/amkyawdev/svg-code-generator
| artifact_path: file:///home/vino/ML_Projects/End-to-end-llm-pipeline-huggingface/mlruns/710899643861413467/models/m-ab39989523454f2786759297aba06b14/artifacts | |
| flavors: | |
| python_function: | |
| env: | |
| conda: conda.yaml | |
| virtualenv: python_env.yaml | |
| loader_module: mlflow.transformers | |
| python_version: 3.11.13 | |
| transformers: | |
| code: null | |
| components: | |
| - tokenizer | |
| framework: pt | |
| instance_type: TextGenerationPipeline | |
| model_binary: model | |
| pipeline_model_type: Qwen3ForCausalLM | |
| source_model_name: ./models/lora/Qwen3_06B_lora_fp16_r64_e10_msl2048 | |
| task: text-generation | |
| tokenizer_type: Qwen2TokenizerFast | |
| torch_dtype: torch.bfloat16 | |
| transformers_version: 4.54.0 | |
| is_signature_from_type_hint: false | |
| mlflow_version: 3.1.4 | |
| model_id: m-ab39989523454f2786759297aba06b14 | |
| model_size_bytes: 554888572 | |
| model_uuid: m-ab39989523454f2786759297aba06b14 | |
| prompts: null | |
| run_id: c61be72e02f74b1c93cb4b20c16164a1 | |
| signature: | |
| inputs: '[{"type": "string", "required": true}]' | |
| outputs: '[{"type": "string", "required": true}]' | |
| params: null | |
| type_hint_from_example: false | |
| utc_time_created: '2025-07-26 11:04:34.618339' | |