Text Generation
Transformers
Safetensors
English
llama
code
reasoning
function-calling
from-scratch
text-generation-inference
Instructions to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K") model = AutoModelForCausalLM.from_pretrained("WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K
- SGLang
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K 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 "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with Docker Model Runner:
docker model run hf.co/WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,103 +2,62 @@
|
|
| 2 |
license: other
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
-
library_name: transformers
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
- WIUAI
|
| 10 |
-
- Mini
|
| 11 |
-
-
|
| 12 |
-
- reasoning
|
| 13 |
-
- code
|
| 14 |
-
- full-parameter-finetuning
|
| 15 |
-
- 4k-context
|
| 16 |
-
- llama
|
| 17 |
datasets:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
- xtools-at/Claude-Haiku-5.5-High-Reasoning-TraceInversion-3000x
|
| 19 |
- xtools-at/ChatGPT-6.1-Terra-High-Reasoning-TraceInversion-80x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
---
|
| 21 |
|
| 22 |
-
# WIUAI
|
| 23 |
-
|
| 24 |
-
A reasoning-focused full-parameter fine-tune of
|
| 25 |
-
`WithinUsAI/WIUAI.Mini.Coder.Traces`.
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|---|---|
|
| 31 |
-
| Organization | WithinUsAI |
|
| 32 |
-
| Base model | `WithinUsAI/WIUAI.Mini.Coder.Traces` |
|
| 33 |
-
| Architecture | LlamaForCausalLM |
|
| 34 |
-
| Original context | 1024 |
|
| 35 |
-
| Configured context | 4096 |
|
| 36 |
-
| RoPE method | Linear |
|
| 37 |
-
| RoPE factor | 4.0000 |
|
| 38 |
-
| Total parameters | 302,027,520 |
|
| 39 |
-
| Trainable parameters | 302,027,520 |
|
| 40 |
-
| Training method | Full-parameter fine-tuning |
|
| 41 |
-
| Epochs | 2 |
|
| 42 |
-
| Learning rate | 1e-05 |
|
| 43 |
-
| Optimizer | AdamW |
|
| 44 |
-
| Precision | FP16 |
|
| 45 |
-
| Seed | 1147 |
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
|
| 53 |
-
trace-inversion reconstructions. They should not be
|
| 54 |
-
treated as verified private reasoning traces or guaranteed
|
| 55 |
-
ground-truth explanations.
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
- Extracted user prompts and assistant responses.
|
| 60 |
-
- Used reasoning fields when available.
|
| 61 |
-
- Used reasoning summaries as fallback.
|
| 62 |
-
- Prompt-level deduplication.
|
| 63 |
-
- Training/evaluation/test prompt overlap removed.
|
| 64 |
-
- Examples above 4,096 tokens hard-dropped.
|
| 65 |
-
- No truncation.
|
| 66 |
-
- Prompt tokens masked from supervised loss.
|
| 67 |
-
- Assistant reasoning and answer tokens supervised.
|
| 68 |
-
|
| 69 |
-
## Final dataset sizes
|
| 70 |
-
|
| 71 |
-
| Split | Examples |
|
| 72 |
-
|---|---:|
|
| 73 |
-
| Training | 2070 |
|
| 74 |
-
| Evaluation | 112 |
|
| 75 |
-
| Testing | 97 |
|
| 76 |
-
|
| 77 |
-
## Context extension
|
| 78 |
-
|
| 79 |
-
The base configuration specified 1024 positions.
|
| 80 |
-
This training configuration uses Transformers 5.x
|
| 81 |
-
`rope_parameters` with linear RoPE scaling to configure
|
| 82 |
-
a 4,096-token context.
|
| 83 |
-
|
| 84 |
-
A configured context length does not independently
|
| 85 |
-
establish reliable long-context performance. Long-context
|
| 86 |
-
testing is required.
|
| 87 |
-
|
| 88 |
-
## Evaluation
|
| 89 |
-
|
| 90 |
-
See `training_metrics.json` for training, evaluation,
|
| 91 |
-
and independent test metrics.
|
| 92 |
-
|
| 93 |
-
## Limitations
|
| 94 |
-
|
| 95 |
-
- Reasoning quality depends on the source data.
|
| 96 |
-
- Trace-inversion examples are not verified ground truth.
|
| 97 |
-
- Evaluation loss is not a complete reasoning benchmark.
|
| 98 |
-
- Code correctness and tool-calling ability require
|
| 99 |
-
independent testing.
|
| 100 |
-
- Long-context performance requires separate validation.
|
| 101 |
|
| 102 |
-
##
|
| 103 |
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: other
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
+
library_name: transformers
|
| 7 |
+
base_model:
|
| 8 |
+
- WithinUsAI/WIUAI.Mini.Coder.Traces
|
| 9 |
+
- WithinUsAI/WIUAI.Mini.Coder.ToolCalling
|
| 10 |
+
- WithinUsAI/WIUAI.Mini.Coder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
datasets:
|
| 12 |
+
- HuggingFaceFW/fineweb-edu
|
| 13 |
+
- nvidia/Nemotron-Pretraining-Code-v1
|
| 14 |
+
- bigcode/starcoderdata
|
| 15 |
+
- nvidia/Nemotron-CC-Math-v1
|
| 16 |
+
- HuggingFaceFW/finewiki
|
| 17 |
+
- open-web-math/open-web-math
|
| 18 |
+
- nvidia/Nemotron-Pretraining-SFT-v1
|
| 19 |
+
- nvidia/OpenCodeInstruct
|
| 20 |
+
- nvidia/OpenMathInstruct-2
|
| 21 |
+
- NousResearch/hermes-function-calling-v1
|
| 22 |
+
- greghavens/fable-5-coding-and-debugging-traces
|
| 23 |
+
- greghavens/gpt-5.6-sol-coding-and-debugging-traces
|
| 24 |
+
- greghavens/glm-5.2-coding-and-debugging-traces
|
| 25 |
- xtools-at/Claude-Haiku-5.5-High-Reasoning-TraceInversion-3000x
|
| 26 |
- xtools-at/ChatGPT-6.1-Terra-High-Reasoning-TraceInversion-80x
|
| 27 |
+
tags:
|
| 28 |
+
- code
|
| 29 |
+
- reasoning
|
| 30 |
+
- function-calling
|
| 31 |
+
- llama
|
| 32 |
+
- from-scratch
|
| 33 |
---
|
| 34 |
|
| 35 |
+
# WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
**Final model card consolidating the full fine-tuning lineage.**
|
| 38 |
|
| 39 |
+
## Model Overview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
`WIUAI.Mini.Coder.DeepReasoning.4K` is the newest checkpoint in the WIUAI Mini Coder series. It is a full-parameter fine-tune of `WithinUsAI/WIUAI.Mini.Coder.Traces` that extends context to 4K tokens and specializes the model for deeper multi-step reasoning on coding and general problem-solving tasks.
|
| 42 |
|
| 43 |
+
* **Organization:** WithinUsAI (WithIn Us AI)
|
| 44 |
+
* **Base of this stage:** `WithinUsAI/WIUAI.Mini.Coder.Traces`
|
| 45 |
+
* **Architecture:** `LlamaForCausalLM` (LLaMA-style causal decoder)
|
| 46 |
+
* **Parameters:** ~302β303M (302,027,520 exact)
|
| 47 |
+
* **Context Length:** 4,096 tokens (extended from 1,024 via linear RoPE scaling, factor `4.0`)
|
| 48 |
+
* **Training Method:** Full-parameter fine-tuning
|
| 49 |
+
* **Precision:** FP16
|
| 50 |
+
* **License:** Other (inherits from upstream lineage; check individual dataset and model licenses)
|
| 51 |
+
* **Tokenizer:** BigCode StarCoder (`49,152` vocab)
|
| 52 |
|
| 53 |
+
This model is the cumulative result of a four-stage progressive specialization starting from a from-scratch 303M code model.
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
+
## Model Tree Summary
|
| 58 |
|
| 59 |
+
```text
|
| 60 |
+
WithinUsAI/WIUAI.Mini.Coder (from-scratch, 4-stage curriculum)
|
| 61 |
+
βββ WithinUsAI/WIUAI.Mini.Coder.ToolCalling (Hermes function-calling)
|
| 62 |
+
βββ WithinUsAI/WIUAI.Mini.Coder.Traces (coding/debugging agent traces)
|
| 63 |
+
βββ WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K (deep reasoning + 4K context)
|