Text Generation
Safetensors
GGUF
PyTorch
English
generic
custom
function-calling
tiny-model
edge-ai
tool-use
router
Instructions to use Safeeq/FCtiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Safeeq/FCtiny with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Safeeq/FCtiny # Run inference directly in the terminal: llama cli -hf Safeeq/FCtiny
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Safeeq/FCtiny # Run inference directly in the terminal: llama cli -hf Safeeq/FCtiny
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Safeeq/FCtiny # Run inference directly in the terminal: ./llama-cli -hf Safeeq/FCtiny
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Safeeq/FCtiny # Run inference directly in the terminal: ./build/bin/llama-cli -hf Safeeq/FCtiny
Use Docker
docker model run hf.co/Safeeq/FCtiny
- LM Studio
- Jan
- vLLM
How to use Safeeq/FCtiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Safeeq/FCtiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Safeeq/FCtiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Safeeq/FCtiny
- Ollama
How to use Safeeq/FCtiny with Ollama:
ollama run hf.co/Safeeq/FCtiny
- Unsloth Desktop
- Docker Model Runner
How to use Safeeq/FCtiny with Docker Model Runner:
docker model run hf.co/Safeeq/FCtiny
- Lemonade
How to use Safeeq/FCtiny with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Safeeq/FCtiny
Run and chat with the model
lemonade run user.FCtiny-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
docs: add comprehensive model card with GitHub links, quickstarts, GGUF guide, and reproduction pipeline
Browse files
README.md
CHANGED
|
@@ -8,121 +8,266 @@ tags:
|
|
| 8 |
- edge-ai
|
| 9 |
- tool-use
|
| 10 |
- router
|
|
|
|
|
|
|
| 11 |
pipeline_tag: text-generation
|
|
|
|
| 12 |
widget:
|
| 13 |
- text: "weather in tokyo today"
|
|
|
|
| 14 |
- text: "tell me a joke"
|
|
|
|
| 15 |
- text: "who is marie curie"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
---
|
| 28 |
|
| 29 |
-
##
|
| 30 |
|
| 31 |
-
|
|
| 32 |
| :--- | :--- | :--- |
|
| 33 |
-
|
|
| 34 |
-
|
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
| **Positional Encoding** | RoPE (Rotary) | Base frequency $\theta = 10000.0$ |
|
| 38 |
-
| **Normalization** | RMSNorm | $\epsilon = 10^{-6}$ (pre-norm configuration) |
|
| 39 |
-
| **Feed-Forward Network** | GELU (4Γ width) | Hidden dimension = 320 |
|
| 40 |
-
| **Weight Tying** | Yes | Input embeddings tied with output linear head |
|
| 41 |
-
| **Vocabulary Size** | 2,048 | Custom ByteLevel BPE trained on domain syntax |
|
| 42 |
-
| **Context Length** | 80 tokens | Maximum prompt + generation sequence length |
|
| 43 |
|
| 44 |
---
|
| 45 |
|
| 46 |
-
##
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 52 |
```
|
| 53 |
|
| 54 |
-
|
| 55 |
-
- `query`: Formatted search terms extracted and normalized from user intent.
|
| 56 |
-
- `recency`: Temporal constraint bucket (`day`, `week`, or `any`).
|
| 57 |
-
- `none`: Abstention signal for greetings, chit-chat, creative prompts, or statements not requiring search.
|
| 58 |
|
| 59 |
-
|
|
|
|
|
|
|
| 60 |
|
| 61 |
-
#
|
| 62 |
-
|
| 63 |
-
|
|
|
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
| **Query Slot Exact Match** | **99.8%** | **89.5%** |
|
| 72 |
-
| **Recency Slot Accuracy** | **99.9%** | **97.2%** |
|
| 73 |
-
| **Syntactic Validity Rate** | **100.0%** | **99.8%** |
|
| 74 |
-
| **Inference Latency (CPU)** | **~3.2 ms** | **~3.4 ms** |
|
| 75 |
|
| 76 |
-
|
| 77 |
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
-
##
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
|
| 88 |
---
|
| 89 |
|
| 90 |
-
##
|
| 91 |
|
| 92 |
```python
|
| 93 |
import torch
|
| 94 |
from safetensors.torch import load_file
|
| 95 |
from tokenizers import Tokenizer
|
| 96 |
-
from model import TinyLM # Available in companion GitHub repo
|
| 97 |
|
| 98 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
state_dict = load_file("model.safetensors")
|
| 100 |
tok = Tokenizer.from_file("tokenizer.json")
|
| 101 |
|
| 102 |
-
# 2. Instantiate
|
| 103 |
model = TinyLM(vocab=2048, d=80, n_layers=4, n_heads=4, ffn_mult=4, max_len=80)
|
| 104 |
model.load_state_dict(state_dict)
|
| 105 |
model.eval()
|
| 106 |
|
| 107 |
-
# 3.
|
| 108 |
user_input = "weather in chennai today"
|
| 109 |
-
prompt_ids = [1] + tok.encode(user_input).ids + [2]
|
| 110 |
|
| 111 |
-
# 4.
|
| 112 |
with torch.no_grad():
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
```
|
| 116 |
|
| 117 |
---
|
| 118 |
|
| 119 |
-
##
|
| 120 |
|
| 121 |
-
|
| 122 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
---
|
| 125 |
|
| 126 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
-
|
|
|
|
| 8 |
- edge-ai
|
| 9 |
- tool-use
|
| 10 |
- router
|
| 11 |
+
- pytorch
|
| 12 |
+
- gguf
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
+
library_name: generic
|
| 15 |
widget:
|
| 16 |
- text: "weather in tokyo today"
|
| 17 |
+
example_title: "Web Search Intent"
|
| 18 |
- text: "tell me a joke"
|
| 19 |
+
example_title: "Abstain (none)"
|
| 20 |
- text: "who is marie curie"
|
| 21 |
+
example_title: "Person Search"
|
| 22 |
+
- text: "latest iphone 16 price in india"
|
| 23 |
+
example_title: "Price Search"
|
| 24 |
+
datasets:
|
| 25 |
+
- Safeeq/FCtiny
|
| 26 |
---
|
| 27 |
|
| 28 |
+
<div align="center">
|
| 29 |
|
| 30 |
+
# π TinyLM-FC β Tiny Function-Calling Router
|
| 31 |
+
### ~0.47M Parameters | CPU < 4ms | MIT License
|
| 32 |
|
| 33 |
+
[](https://github.com/Safeeq008/tiny-fc-lm)
|
| 34 |
+
[](https://opensource.org/licenses/MIT)
|
| 35 |
+
[](https://www.python.org/)
|
| 36 |
+
[](#architecture)
|
| 37 |
+
[](#benchmarks)
|
| 38 |
+
[](#gguf--ollama)
|
| 39 |
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
A **sub-half-million-parameter decoder-only transformer** trained completely from scratch to act as a lightweight, low-latency **function-calling router**. Given a user utterance, TinyLM decides whether to invoke an external tool (`web_search`) with structured arguments, or abstain (`none`) for chit-chat and greetings.
|
| 43 |
+
|
| 44 |
+
Built as an educational and empirical case study: *how small can a specialized router be while still maintaining high precision?*
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## π Quick Links
|
| 49 |
+
|
| 50 |
+
| Resource | Link |
|
| 51 |
+
| :--- | :--- |
|
| 52 |
+
| π¦ **Full Source Code, Training & Eval Pipeline** | [github.com/Safeeq008/tiny-fc-lm](https://github.com/Safeeq008/tiny-fc-lm) |
|
| 53 |
+
| π€ **Model Weights (this page)** | [huggingface.co/Safeeq/FCtiny](https://huggingface.co/Safeeq/FCtiny) |
|
| 54 |
+
| π **Detailed README & Architecture Docs** | [README.md on GitHub](https://github.com/Safeeq008/tiny-fc-lm/blob/main/README.md) |
|
| 55 |
+
| π³ **Docker Deployment** | [Dockerfile](https://github.com/Safeeq008/tiny-fc-lm/blob/main/Dockerfile) Β· [DEPLOY.md](https://github.com/Safeeq008/tiny-fc-lm/blob/main/DEPLOY.md) |
|
| 56 |
+
| π¦ **Ollama / llama.cpp Guide** | [OLLAMA.md](https://github.com/Safeeq008/tiny-fc-lm/blob/main/OLLAMA.md) |
|
| 57 |
|
| 58 |
---
|
| 59 |
|
| 60 |
+
## π¦ Files in This Repository
|
| 61 |
|
| 62 |
+
| File | Size | Description |
|
| 63 |
| :--- | :--- | :--- |
|
| 64 |
+
| `model.safetensors` | ~1.8 MB | PyTorch weights in safe zero-copy format |
|
| 65 |
+
| `config.json` | ~1 KB | Architecture hyperparameters |
|
| 66 |
+
| `tokenizer.json` | ~121 KB | Custom 2048-vocab ByteLevel BPE tokenizer |
|
| 67 |
+
| `tinyfc.gguf` | ~1.0 MB | Quantized model for Ollama & llama.cpp |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
---
|
| 70 |
|
| 71 |
+
## β‘ Quickstart
|
| 72 |
|
| 73 |
+
### Option A β Python (from this Hub)
|
| 74 |
+
|
| 75 |
+
```bash
|
| 76 |
+
git clone https://github.com/Safeeq008/tiny-fc-lm.git
|
| 77 |
+
cd tiny-fc-lm
|
| 78 |
+
pip install -r requirements.txt
|
| 79 |
+
python infer.py
|
| 80 |
```
|
| 81 |
|
| 82 |
+
### Option B β GGUF via Ollama (zero-install inference)
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
+
```bash
|
| 85 |
+
# Download the GGUF and Modelfile from GitHub
|
| 86 |
+
curl -LO https://github.com/Safeeq008/tiny-fc-lm/raw/main/Modelfile
|
| 87 |
|
| 88 |
+
# Pull the GGUF from Hugging Face and register it
|
| 89 |
+
ollama pull hf.co/Safeeq/FCtiny:latest
|
| 90 |
+
ollama run hf.co/Safeeq/FCtiny
|
| 91 |
+
```
|
| 92 |
|
| 93 |
+
Or using the local GGUF:
|
| 94 |
+
```bash
|
| 95 |
+
# Download tinyfc.gguf from the Files tab above, then:
|
| 96 |
+
ollama create tinyfc -f Modelfile
|
| 97 |
+
ollama run tinyfc "weather in new york today"
|
| 98 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
+
### Option C β FastAPI REST Server (from GitHub)
|
| 101 |
|
| 102 |
+
```bash
|
| 103 |
+
git clone https://github.com/Safeeq008/tiny-fc-lm.git
|
| 104 |
+
cd tiny-fc-lm && pip install -r requirements.txt
|
| 105 |
+
python serve.py 8000
|
| 106 |
+
```
|
| 107 |
+
- Web UI: `http://localhost:8000`
|
| 108 |
+
- Swagger docs: `http://localhost:8000/docs`
|
| 109 |
|
| 110 |
+
### Option D β Docker
|
| 111 |
|
| 112 |
+
```bash
|
| 113 |
+
docker pull ghcr.io/safeeq008/tiny-fc-lm:latest # or build locally:
|
| 114 |
+
git clone https://github.com/Safeeq008/tiny-fc-lm.git
|
| 115 |
+
docker build -t tiny-fc-lm . && docker run -p 8000:8000 tiny-fc-lm
|
| 116 |
+
```
|
| 117 |
|
| 118 |
---
|
| 119 |
|
| 120 |
+
## π Python Inference (Manual)
|
| 121 |
|
| 122 |
```python
|
| 123 |
import torch
|
| 124 |
from safetensors.torch import load_file
|
| 125 |
from tokenizers import Tokenizer
|
|
|
|
| 126 |
|
| 127 |
+
# ββ Clone the repo for model.py ββ
|
| 128 |
+
# git clone https://github.com/Safeeq008/tiny-fc-lm.git
|
| 129 |
+
import sys; sys.path.insert(0, "tiny-fc-lm")
|
| 130 |
+
from model import TinyLM
|
| 131 |
+
|
| 132 |
+
# 1. Load weights + tokenizer (download from Files tab above)
|
| 133 |
state_dict = load_file("model.safetensors")
|
| 134 |
tok = Tokenizer.from_file("tokenizer.json")
|
| 135 |
|
| 136 |
+
# 2. Instantiate model
|
| 137 |
model = TinyLM(vocab=2048, d=80, n_layers=4, n_heads=4, ffn_mult=4, max_len=80)
|
| 138 |
model.load_state_dict(state_dict)
|
| 139 |
model.eval()
|
| 140 |
|
| 141 |
+
# 3. Encode prompt with special tokens (<user>=1, <call>=2)
|
| 142 |
user_input = "weather in chennai today"
|
| 143 |
+
prompt_ids = [1] + tok.encode(user_input).ids + [2]
|
| 144 |
|
| 145 |
+
# 4. Greedily decode
|
| 146 |
with torch.no_grad():
|
| 147 |
+
ids = torch.tensor([prompt_ids])
|
| 148 |
+
for _ in range(30):
|
| 149 |
+
logits = model(ids)[0]
|
| 150 |
+
next_id = logits[0, -1].argmax().item()
|
| 151 |
+
if next_id == 3: # <end> token
|
| 152 |
+
break
|
| 153 |
+
ids = torch.cat([ids, torch.tensor([[next_id]])], dim=-1)
|
| 154 |
+
output_ids = ids[0, len(prompt_ids):].tolist()
|
| 155 |
+
print(tok.decode(output_ids))
|
| 156 |
+
# β web_search|query=chennai weather today|recency=day
|
| 157 |
+
|
| 158 |
+
# For full constrained decoding + live DuckDuckGo dispatch, see:
|
| 159 |
+
# https://github.com/Safeeq008/tiny-fc-lm/blob/main/infer.py
|
| 160 |
```
|
| 161 |
|
| 162 |
---
|
| 163 |
|
| 164 |
+
## π Architecture
|
| 165 |
|
| 166 |
+
| Hyperparameter | Value | Notes |
|
| 167 |
+
| :--- | :---: | :--- |
|
| 168 |
+
| **Total Parameters** | 471,760 (~0.47M) | Trainable weight count |
|
| 169 |
+
| **Layers** | 4 | Transformer decoder blocks |
|
| 170 |
+
| **Hidden Dim** | 80 | Embedding & layer dimensionality |
|
| 171 |
+
| **Attention Heads** | 4 | Head dim = 20 (even for RoPE) |
|
| 172 |
+
| **Positional Encoding** | RoPE | ΞΈ = 10000.0 |
|
| 173 |
+
| **Normalization** | RMSNorm | Ξ΅ = 1e-6, pre-norm |
|
| 174 |
+
| **FFN** | GELU (4Γ width) | Hidden dim = 320 |
|
| 175 |
+
| **Weight Tying** | β
Yes | Input embeddings = output head |
|
| 176 |
+
| **Vocabulary Size** | 2,048 | Custom ByteLevel BPE |
|
| 177 |
+
| **Context Length** | 80 tokens | Max prompt + generation |
|
| 178 |
|
| 179 |
---
|
| 180 |
|
| 181 |
+
## π Benchmarks
|
| 182 |
+
|
| 183 |
+
| Metric | Val (In-Distribution) | OOD (Held-Out Phrasings) |
|
| 184 |
+
| :--- | :---: | :---: |
|
| 185 |
+
| **Exact Match Accuracy** | **~99.8%** | **~88.2%** |
|
| 186 |
+
| **Routing Decision Accuracy** | **99.9%** | **96.4%** |
|
| 187 |
+
| **Routing Precision (Tool)** | **99.9%** | **97.1%** |
|
| 188 |
+
| **Routing Recall (Tool)** | **99.9%** | **98.8%** |
|
| 189 |
+
| **Query Slot Exact Match** | **99.8%** | **89.5%** |
|
| 190 |
+
| **Recency Slot Accuracy** | **99.9%** | **97.2%** |
|
| 191 |
+
| **Syntactic Validity Rate** | **100.0%** | **99.8%** |
|
| 192 |
+
| **CPU Inference Latency** | **~3.2 ms** | **~3.4 ms** |
|
| 193 |
+
|
| 194 |
+
> OOD = templates strictly held-out from training (unseen surface forms, same entity pools).
|
| 195 |
+
|
| 196 |
+
---
|
| 197 |
+
|
| 198 |
+
## π Output Protocol
|
| 199 |
+
|
| 200 |
+
TinyLM outputs a strict, pipe-delimited schema:
|
| 201 |
+
|
| 202 |
+
```
|
| 203 |
+
web_search|query=<search query>|recency=<day|week|any>
|
| 204 |
+
none
|
| 205 |
+
```
|
| 206 |
+
|
| 207 |
+
**Examples:**
|
| 208 |
+
|
| 209 |
+
| User Input | Model Output |
|
| 210 |
+
| :--- | :--- |
|
| 211 |
+
| `weather in tokyo today` | `web_search\|query=tokyo weather today\|recency=day` |
|
| 212 |
+
| `latest AI news` | `web_search\|query=latest ai news\|recency=day` |
|
| 213 |
+
| `iphone 16 price in india` | `web_search\|query=iphone 16 price india\|recency=week` |
|
| 214 |
+
| `hi how are you` | `none` |
|
| 215 |
+
| `tell me a joke` | `none` |
|
| 216 |
+
| `what is 2 + 2` | `none` |
|
| 217 |
+
|
| 218 |
+
---
|
| 219 |
+
|
| 220 |
+
## π¦ GGUF & Ollama
|
| 221 |
+
|
| 222 |
+
A `tinyfc.gguf` artifact (~1.09 MB, fp16) is available in the **Files** tab above. This is a canonical Llama-architecture twin (~512k params, SwiGLU MLP) trained on the same task and tokenizer, exported for llama.cpp-compatible runtimes.
|
| 223 |
+
|
| 224 |
+
**Quick usage:**
|
| 225 |
+
```bash
|
| 226 |
+
# Download tinyfc.gguf from the Files tab, then:
|
| 227 |
+
ollama create tinyfc -f Modelfile
|
| 228 |
+
ollama run tinyfc "latest ethereum price"
|
| 229 |
+
# β web_search|query=ethereum price today|recency=day
|
| 230 |
+
```
|
| 231 |
+
|
| 232 |
+
See the full guide in [OLLAMA.md](https://github.com/Safeeq008/tiny-fc-lm/blob/main/OLLAMA.md).
|
| 233 |
+
|
| 234 |
+
---
|
| 235 |
+
|
| 236 |
+
## ποΈ Reproduce from Scratch
|
| 237 |
+
|
| 238 |
+
Full pipeline available at [github.com/Safeeq008/tiny-fc-lm](https://github.com/Safeeq008/tiny-fc-lm):
|
| 239 |
+
|
| 240 |
+
```bash
|
| 241 |
+
git clone https://github.com/Safeeq008/tiny-fc-lm.git
|
| 242 |
+
cd tiny-fc-lm && pip install -r requirements.txt
|
| 243 |
+
|
| 244 |
+
python gen_data.py # 1. Generate 80k synthetic training samples
|
| 245 |
+
python train_tok.py # 2. Train custom 2048-vocab BPE tokenizer
|
| 246 |
+
python train.py # 3. Train TinyLM-FC model (~5-10 min, CPU)
|
| 247 |
+
python eval.py # 4. Full benchmark suite (val + OOD)
|
| 248 |
+
python infer.py # 5. Interactive CLI with live DuckDuckGo search
|
| 249 |
+
python serve.py 8000 # 6. FastAPI server + web UI
|
| 250 |
+
|
| 251 |
+
# Optional: GGUF/Ollama path
|
| 252 |
+
python train_llama.py # 7. Train Llama-arch twin
|
| 253 |
+
python export_gguf.py # 8. Convert to GGUF
|
| 254 |
+
ollama create tinyfc -f Modelfile && ollama run tinyfc
|
| 255 |
+
```
|
| 256 |
+
|
| 257 |
+
---
|
| 258 |
+
|
| 259 |
+
## β οΈ Known Limitations
|
| 260 |
+
|
| 261 |
+
1. **Single-tool**: Strictly routes `web_search` only β no multi-tool schemas.
|
| 262 |
+
2. **English only**: Custom BPE tokenizer trained on English synthetic corpus.
|
| 263 |
+
3. **80-token context window**: Inputs > ~60 user tokens are silently truncated.
|
| 264 |
+
4. **Synthetic training data**: Real-world query distributions are far noisier; OOD generalization is limited to phrasing variation, not domain shift.
|
| 265 |
+
5. **Constrained decoding required**: Raw greedy decoding may produce malformed outputs; use `infer.py`'s constrained decoder for production.
|
| 266 |
+
|
| 267 |
+
---
|
| 268 |
+
|
| 269 |
+
## π License
|
| 270 |
+
|
| 271 |
+
Released under the **MIT License** β free for research, benchmarking, commercial use, and edge deployment.
|
| 272 |
|
| 273 |
+
**Repository:** [github.com/Safeeq008/tiny-fc-lm](https://github.com/Safeeq008/tiny-fc-lm)
|