Text Generation
Transformers
Safetensors
English
qwen2
text-to-cad
code-generation
cadquery
3d-modeling
reinforcement-learning
conversational
text-generation-inference
Instructions to use gudo7208/CAD-Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gudo7208/CAD-Coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gudo7208/CAD-Coder") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gudo7208/CAD-Coder") model = AutoModelForCausalLM.from_pretrained("gudo7208/CAD-Coder", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gudo7208/CAD-Coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gudo7208/CAD-Coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gudo7208/CAD-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gudo7208/CAD-Coder
- SGLang
How to use gudo7208/CAD-Coder 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 "gudo7208/CAD-Coder" \ --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": "gudo7208/CAD-Coder", "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 "gudo7208/CAD-Coder" \ --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": "gudo7208/CAD-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use gudo7208/CAD-Coder with Docker Model Runner:
docker model run hf.co/gudo7208/CAD-Coder
Commit History
-
Add NeurIPS 2025 acceptance info
Verified signature9582887 -
Update README.md
Verified signature5833064 -
Update README.md
Verified signature95e7d7a
-
Upload README.md with huggingface_hub
Verified signature3c0347b -
Delete files batch_inference.py with huggingface_hub
Verified signature14230a6 -
Delete files inference.py with huggingface_hub
Verified signaturee9a3c74
-
Upload batch_inference.py with huggingface_hub
Verified signatureb9548a1 -
Upload inference.py with huggingface_hub
Verified signatured8cfe41 -
Upload README.md with huggingface_hub
Verified signature7a904fa -
Upload README.md with huggingface_hub
Verified signaturea2e5cc8 -
Upload README.md with huggingface_hub
Verified signaturee11199f -
Upload model-00004-of-00004.safetensors with huggingface_hub
Verified signatureff0920d -
Upload model-00003-of-00004.safetensors with huggingface_hub
Verified signature2678b7f -
Upload model-00002-of-00004.safetensors with huggingface_hub
Verified signature29c260f -
Upload model-00001-of-00004.safetensors with huggingface_hub
Verified signaturee6ab153 -
Upload README.md with huggingface_hub
Verified signature0b45f86 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature7af6139 -
Upload special_tokens_map.json with huggingface_hub
Verified signature2d873c3 -
Upload added_tokens.json with huggingface_hub
Verified signaturec3d7e83 -
Upload merges.txt with huggingface_hub
Verified signature6e0fe7c -
Upload vocab.json with huggingface_hub
Verified signature3578980 -
Upload tokenizer.json with huggingface_hub
Verified signature29657e5 -
Upload tokenizer_config.json with huggingface_hub
Verified signaturedab26b1 -
Upload generation_config.json with huggingface_hub
Verified signaturebffc646 -
Upload config.json with huggingface_hub
Verified signature4e0c071
-
initial commit
Verified signature6bddd3f