Instructions to use NovaSky-AI/Sky-T1-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NovaSky-AI/Sky-T1-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NovaSky-AI/Sky-T1-mini") 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("NovaSky-AI/Sky-T1-mini") model = AutoModelForCausalLM.from_pretrained("NovaSky-AI/Sky-T1-mini", 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 NovaSky-AI/Sky-T1-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NovaSky-AI/Sky-T1-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NovaSky-AI/Sky-T1-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NovaSky-AI/Sky-T1-mini
- SGLang
How to use NovaSky-AI/Sky-T1-mini 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 "NovaSky-AI/Sky-T1-mini" \ --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": "NovaSky-AI/Sky-T1-mini", "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 "NovaSky-AI/Sky-T1-mini" \ --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": "NovaSky-AI/Sky-T1-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NovaSky-AI/Sky-T1-mini with Docker Model Runner:
docker model run hf.co/NovaSky-AI/Sky-T1-mini
Improve model card
#1
by nielsr HF Staff - opened
123456789101112133 unmodified lines1718192021222324252627282930313233343536373 unmodified lines4142434445464748495051525354555657585911 unmodified lines717273747576771 unmodified line798081828384856 unmodified lines9293949596979875 unmodified lines17417517617717817918015 unmodified lines196197198199---library_name: transformerstags: []---# Model Card for Model ID<!-- Provide a quick summary of what the model is/does. -->## Model Details3 unmodified linesThis is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.- **Developed by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]### Model Sources [optional]<!-- Provide the basic links for the model. -->- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]## Uses3 unmodified lines<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->[More Information Needed]### Downstream Use [optional]<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->[More Information Needed]### Out-of-Scope Use<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->[More Information Needed]## Bias, Risks, and Limitations11 unmodified linesUse the code below to get started with the model.[More Information Needed]## Training Details1 unmodified line<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->[More Information Needed]### Training Procedure6 unmodified lines#### Training Hyperparameters- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->#### Speeds, Sizes, Times [optional]75 unmodified lines**BibTeX:**[More Information Needed]**APA:**15 unmodified lines## Model Card Contact[More Information Needed]1234567891011121314153 unmodified lines1920212223242526272829303132333435363738393 unmodified lines4344454647484950515253545556575859606111 unmodified lines73747576777879808182838485868788899091921 unmodified line9495969798991006 unmodified lines10710810911011111211375 unmodified lines18919019119219319419519619719819920020120220315 unmodified lines219220221222223---library_name: transformerslicense: mittags: []pipeline_tag: text-generation---```markdown# Model Card for Model ID<!-- Provide a quick summary of what the model is/does. -->Sky-T1-32B-Preview is a 32B parameter model described in the paper [LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!](https://hf.co/papers/2502.07374)## Model Details3 unmodified linesThis is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.- **Developed by:** [NovaSky Team]- **Funded by [optional]:** [Berkeley Sky Computing Lab]- **Shared by [optional]:** [NovaSky-AI]- **Model type:** [Qwen2ForCausalLM]- **Language(s) (NLP):** [English]- **License:** [MIT]- **Finetuned from model [optional]:** [Qwen2.5-32B-Instruct]### Model Sources [optional]<!-- Provide the basic links for the model. -->- **Repository:** https://github.com/NovaSky-AI/SkyThought- **Paper [optional]:** [LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!](https://hf.co/papers/2502.07374)- **Demo [optional]:** http://164.152.23.196:3000/## Uses3 unmodified lines<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->Text generation, reasoning### Downstream Use [optional]<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->Text generation, reasoning### Out-of-Scope Use<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->Malicious uses## Bias, Risks, and Limitations11 unmodified linesUse the code below to get started with the model.```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizermodel_id = "NovaSky-AI/Sky-T1-32B-Preview"tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")prompt = "This is a test prompt"inputs = tokenizer(prompt, return_tensors="pt").to("cuda")generated_ids = model.generate(**inputs)decoded_output = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)```## Training Details1 unmodified line<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->https://huggingface.co/datasets/NovaSky-AI/Sky-T1_data_17k### Training Procedure6 unmodified lines#### Training Hyperparameters- **Training regime:** [bf16 mixed precision] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->#### Speeds, Sizes, Times [optional]75 unmodified lines**BibTeX:**```@misc{sky_t1_2025,author = {NovaSky Team},title = {Sky-T1: Train your own O1 preview model within $450},howpublished = {https://novasky-ai.github.io/posts/sky-t1},note = {Accessed: 2025-01-09},year = {2025}}```**APA:**15 unmodified lines## Model Card Contact[More Information Needed]```
README.md+44-20