Instructions to use paulo037/stable-code-instruct-3b-syntetic-spider with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use paulo037/stable-code-instruct-3b-syntetic-spider with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="paulo037/stable-code-instruct-3b-syntetic-spider") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("paulo037/stable-code-instruct-3b-syntetic-spider") model = AutoModelForCausalLM.from_pretrained("paulo037/stable-code-instruct-3b-syntetic-spider") 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 paulo037/stable-code-instruct-3b-syntetic-spider with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "paulo037/stable-code-instruct-3b-syntetic-spider" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "paulo037/stable-code-instruct-3b-syntetic-spider", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/paulo037/stable-code-instruct-3b-syntetic-spider
- SGLang
How to use paulo037/stable-code-instruct-3b-syntetic-spider 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 "paulo037/stable-code-instruct-3b-syntetic-spider" \ --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": "paulo037/stable-code-instruct-3b-syntetic-spider", "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 "paulo037/stable-code-instruct-3b-syntetic-spider" \ --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": "paulo037/stable-code-instruct-3b-syntetic-spider", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use paulo037/stable-code-instruct-3b-syntetic-spider with Docker Model Runner:
docker model run hf.co/paulo037/stable-code-instruct-3b-syntetic-spider
Ctrl+K
- checkpoint-1000
- checkpoint-10000
- checkpoint-10500
- checkpoint-11000
- checkpoint-11500
- checkpoint-12000
- checkpoint-12500
- checkpoint-13000
- checkpoint-13500
- checkpoint-14000
- checkpoint-14500
- checkpoint-1500
- checkpoint-15000
- checkpoint-2000
- checkpoint-2500
- checkpoint-3000
- checkpoint-3500
- checkpoint-4000
- checkpoint-4500
- checkpoint-500
- checkpoint-5000
- checkpoint-5500
- checkpoint-6000
- checkpoint-6500
- checkpoint-7000
- checkpoint-7500
- checkpoint-8000
- checkpoint-8500
- checkpoint-9000
- checkpoint-9500
- runs
- 1.52 kB
- 757 Bytes
- 2.46 GB xet
- 794 Bytes
- 473 Bytes
- 2.12 MB
- 9.86 kB
- 5.05 kB xet