Run this model with HF Jobs
Run Vinnnf/Thinkless-1.5B-Warmup on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Vinnnf/Thinkless-1.5B-Warmup. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Vinnnf/Thinkless-1.5B-Warmup on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Vinnnf/Thinkless-1.5B-Warmup. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Vinnnf/Thinkless-1.5B-Warmup. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Vinnnf/Thinkless-1.5B-Warmup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vinnnf/Thinkless-1.5B-Warmup with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Vinnnf/Thinkless-1.5B-Warmup") 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("Vinnnf/Thinkless-1.5B-Warmup") model = AutoModelForCausalLM.from_pretrained("Vinnnf/Thinkless-1.5B-Warmup", 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 Vinnnf/Thinkless-1.5B-Warmup with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vinnnf/Thinkless-1.5B-Warmup" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vinnnf/Thinkless-1.5B-Warmup", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Vinnnf/Thinkless-1.5B-Warmup
- SGLang
How to use Vinnnf/Thinkless-1.5B-Warmup 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 "Vinnnf/Thinkless-1.5B-Warmup" \ --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": "Vinnnf/Thinkless-1.5B-Warmup", "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 "Vinnnf/Thinkless-1.5B-Warmup" \ --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": "Vinnnf/Thinkless-1.5B-Warmup", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Vinnnf/Thinkless-1.5B-Warmup with Docker Model Runner:
docker model run hf.co/Vinnnf/Thinkless-1.5B-Warmup
Add project page link
#1
by nielsr HF Staff - opened
12345678910111213141516171828 unmodified lines4748495051522 unmodified lines5556575859606114 unmodified lines7677787980818225 unmodified lines108109110111112113114---license: apache-2.0datasets:- open-thoughts/OpenThoughts2-1M- Vinnnf/Hybrid-OpenThoughts2-1M-1.5Bbase_model:- deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5Bpipeline_tag: text-generationlibrary_name: transformers---# Thinkless: LLM Learns When to Think<table>28 unmodified lines<td>📊 <strong>Data for RL</strong></td><td><a href="https://huggingface.co/datasets/agentica-org/DeepScaleR-Preview-Dataset">agentica-org/DeepScaleR-Preview-Dataset</a></td></tr></tbody></table>2 unmodified lines> [!NOTE]> ***Can LLMs learn when to think?***We propose Thinkless, a learnable framework that empowers an LLM to adaptively select between short-form and long-form reasoning based on both task complexity and the model's ability. Thinkless is trained under a reinforcement learning paradigm and employs two control tokens, \<short\> for concise responses and \<think\> for detailed reasoning. At the core of our method is a Decoupled Group Relative Policy Optimization (DeGRPO) algorithm, which decomposes the learning objective of hybrid reasoning into two components: (1) a control token loss that governs the selection of the reasoning mode, and (2) a response loss that improves the accuracy of the generated answers. This decoupled formulation enables fine-grained control over the contributions of each objective, stabilizing training and effectively preventing collapse observed in vanilla GRPO. Empirically, on several benchmarks such as Minerva Algebra, MATH-500, and GSM8K, Thinkless is able to reduce the usage of long-chain thinking by 50\% - 90\%, significantly reducing the computational cost of Reasoning Language Models.## Pipeline14 unmodified linestokenizer = AutoTokenizer.from_pretrained(model_name)instruction = "Please reason step by step, and put your final answer within \\boxed{}."prompt = f"{instruction}\nThe arithmetic mean of 7, 2, $x$ and 10 is 9. What is the value of $x$?"messages = [{"role": "user", "content": prompt}25 unmodified linesresponse = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]print(text+response)print(f"\nThink Mode: {think_mode}")print(f"Number of tokens: {num_tokens}")```1234567891011121314151628 unmodified lines454647484950515253542 unmodified lines5758596061626314 unmodified lines787980818283848525 unmodified lines111112113114115116117118---base_model:- deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5Bdatasets:- open-thoughts/OpenThoughts2-1M- Vinnnf/Hybrid-OpenThoughts2-1M-1.5Blibrary_name: transformerslicense: apache-2.0pipeline_tag: text-generation---# Thinkless: LLM Learns When to Think<table>28 unmodified lines<td>📊 <strong>Data for RL</strong></td><td><a href="https://huggingface.co/datasets/agentica-org/DeepScaleR-Preview-Dataset">agentica-org/DeepScaleR-Preview-Dataset</a></td></tr><tr><td> 🌐 <strong>Project Page</strong></td><td><a href="https://sites.google.com/view/eagle-llm">Thinkless Website</a></td></tr></tbody></table>2 unmodified lines> [!NOTE]> ***Can LLMs learn when to think?***We propose Thinkless, a learnable framework that empowers an LLM to adaptively select between short-form and long-form reasoning based on both task complexity and the model's ability. Thinkless is trained under a reinforcement learning paradigm and employs two control tokens, \<short\> for concise responses and \<think\> for detailed reasoning. At the core of our method is a Decoupled Group Relative Policy Optimization (DeGRPO) algorithm, which decomposes the learning objective of hybrid reasoning into two components: (1) a control token loss that governs the selection of the reasoning mode, and (2) a response loss that improves the accuracy of the generated answers. This decoupled formulation enables fine-grained control over the contributions of each objective, stabilizing training and effectively preventing collapse observed in vanilla GRPO. Empirically, on several benchmarks such as Minerva Algebra, MATH-500, and GSM8K, Thinkless is able to reduce the usage of long-chain thinking by 50% - 90%, significantly reducing the computational cost of Reasoning Language Models.## Pipeline14 unmodified linestokenizer = AutoTokenizer.from_pretrained(model_name)instruction = "Please reason step by step, and put your final answer within \\boxed{}."prompt = f"{instruction}The arithmetic mean of 7, 2, $x$ and 10 is 9. What is the value of $x$?"messages = [{"role": "user", "content": prompt}25 unmodified linesresponse = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]print(text+response)print(f"Think Mode: {think_mode}")print(f"Number of tokens: {num_tokens}")```
README.md+13-9