Instructions to use giantdev/s1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use giantdev/s1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="giantdev/s1") 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("giantdev/s1") model = AutoModelForCausalLM.from_pretrained("giantdev/s1", 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 giantdev/s1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "giantdev/s1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "giantdev/s1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/giantdev/s1
- SGLang
How to use giantdev/s1 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 "giantdev/s1" \ --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": "giantdev/s1", "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 "giantdev/s1" \ --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": "giantdev/s1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use giantdev/s1 with Docker Model Runner:
docker model run hf.co/giantdev/s1
Commit History
-
Upload vocab.json with huggingface_hub
Verified signature87b9bd5 -
Upload .gitattributes with huggingface_hub
Verified signaturea79d07f -
Upload generation_config.json with huggingface_hub
Verified signatureaf3d0f8 -
Upload model.safetensors with huggingface_hub
Verified signature35eb213 -
Upload hash.txt with huggingface_hub
Verified signature9b7b585 -
Upload tokenizer_config.json with huggingface_hub
Verified signatureb836fbe -
Upload merges.txt with huggingface_hub
Verified signatured7e2dc5 -
Upload config.json with huggingface_hub
Verified signaturea0a7eca -
Upload tokenizer.json with huggingface_hub
Verified signaturebb64e1a -
Upload special_tokens_map.json with huggingface_hub
Verified signature6e91b2a -
Upload vocab.json with huggingface_hub
Verified signaturec1bcfdf -
Upload .gitattributes with huggingface_hub
Verified signaturee1136b3 -
Upload generation_config.json with huggingface_hub
Verified signaturec3eb0f7 -
Upload model.safetensors with huggingface_hub
Verified signaturee246431 -
Upload tokenizer_config.json with huggingface_hub
Verified signatureb446800 -
Upload merges.txt with huggingface_hub
Verified signature88bece1 -
Upload config.json with huggingface_hub
Verified signatureeb78ccc -
Upload tokenizer.json with huggingface_hub
Verified signaturef032e1b -
Upload special_tokens_map.json with huggingface_hub
Verified signature4b76e0d -
Upload tokenizer_config.json with huggingface_hub
Verified signature1f228ca -
Upload merges.txt with huggingface_hub
Verified signature5a04e20 -
Upload config.json with huggingface_hub
Verified signature377a99d -
Upload tokenizer.json with huggingface_hub
Verified signaturea2583fc -
Upload special_tokens_map.json with huggingface_hub
Verified signaturec4103ef -
Upload vocab.json with huggingface_hub
Verified signature3f7e303 -
Upload .gitattributes with huggingface_hub
Verified signaturecb73e50 -
Upload generation_config.json with huggingface_hub
Verified signature14af79b -
Upload model.safetensors with huggingface_hub
Verified signaturecd9bea6 -
Upload tokenizer_config.json with huggingface_hub
Verified signature227ca4b -
Upload merges.txt with huggingface_hub
Verified signature4483d13 -
Upload config.json with huggingface_hub
Verified signatureb4a3805 -
Upload tokenizer.json with huggingface_hub
Verified signature4b950bc -
Upload special_tokens_map.json with huggingface_hub
Verified signature07e4a5a -
Upload vocab.json with huggingface_hub
Verified signature0919951 -
Upload .gitattributes with huggingface_hub
Verified signature01c6a8d -
Upload generation_config.json with huggingface_hub
Verified signatureaee6ad2 -
Upload model.safetensors with huggingface_hub
Verified signature232ba95 -
Upload tokenizer_config.json with huggingface_hub
Verified signature067cdbe -
Upload merges.txt with huggingface_hub
Verified signature3f84d67 -
Upload config.json with huggingface_hub
Verified signature45363c1 -
Upload tokenizer.json with huggingface_hub
Verified signature0627497 -
Upload special_tokens_map.json with huggingface_hub
Verified signaturefe23ead -
initial commit
Verified signature4ca7044