Text Generation
MLX
Safetensors
English
llama
llm
tool-calling
lightweight
agentic-tasks
react
conversational
Run this model with HF Jobs
Run applexml/kimi-k2 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 to fine-tune https://huggingface.co/applexml/kimi-k2. 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/applexml/kimi-k2 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/applexml/kimi-k2. 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/applexml/kimi-k2. 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 applexml/kimi-k2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use applexml/kimi-k2 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("applexml/kimi-k2") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use applexml/kimi-k2 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "applexml/kimi-k2"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "applexml/kimi-k2" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "applexml/kimi-k2", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Duplicate from quwsarohi/NanoAgent-135M
Browse filesCo-authored-by: Quwsar Ohi <quwsarohi@users.noreply.huggingface.co>
Files changed (15)
- .gitattributesAdded+36
- ModelfileAdded+25
- README.mdAdded+149
- chat_template.jinjaAdded+11
- config.jsonAdded+38
- generation_config.jsonAdded+7
- merges.txtAdded
- model.safetensorsAdded+3
- model.safetensors.index.jsonAdded+280
- special_tokens_map.jsonAdded+34
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+154
- train_graph.pngAdded
- train_info.jsonAdded
- vocab.jsonAdded
123456789101112131415161718192021222324252627282930313233343536*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textmodel.gguf filter=lfs diff=lfs merge=lfs -text12345678910111213141516171819202122232425TEMPLATE """{{- if .Messages }}{{- if .System }}<|im_start|>system{{ .System }}<|im_end|>{{ end }}{{- range $i, $_ := .Messages }}{{- $last := eq (len (slice $.Messages $i)) 1 -}}{{- if eq .Role "user" }}<|im_start|>user{{ .Content }}<|im_end|>{{ else if eq .Role "assistant" }}<|im_start|>assistant{{ .Content }}{{ if not $last }}<|im_end|>{{ end }}{{- end }}{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant{{ end }}{{- end }}{{- else }}{{- if .System }}<|im_start|>system{{ .System }}<|im_end|>{{ end }}{{ if .Prompt }}<|im_start|>user{{ .Prompt }}<|im_end|>{{ end }}<|im_start|>assistant{{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}"""SYSTEM You are a helpful AI assistant.PARAMETER stop <|im_start|>PARAMETER stop <|im_end|>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149---language:- enlicense: apache-2.0tags:- llm- tool-calling- lightweight- agentic-tasks- react- mlxmodel-index:- name: NanoAgent results: []datasets:- microsoft/orca-agentinstruct-1M-v1- microsoft/orca-math-word-problems-200k- allenai/tulu-3-sft-personas-instruction-following- xingyaoww/code-act- m-a-p/Code-Feedback- weijie210/gsm8k_decomposed- Locutusque/function-calling-chatml- HuggingFaceTB/smoltalkbase_model:- HuggingFaceTB/SmolLM2-135M-Instructpipeline_tag: text-generation---
# 🧠 NanoAgent — 135M Parameter Agentic LLM
NanoAgent is a compact 135M parameter, 8k context-length language model trained to **perform tool calls** and **generate responses based on tool outputs**. Despite its small size (~135 MB in 8-bit precision), it’s optimized for agentic use cases and runs easily on personal devices.
**Github:** [NanoAgent](https://github.com/QuwsarOhi/NanoAgent)
**Inference resource:** [link](https://github.com/QuwsarOhi/NanoAgent/blob/main/notebooks/inference.ipynb)
---
## ✨ Features
- 🧰 **Tool Calling** — understands and responds with structured outputs from tool calls. - 🧭 **Instruction Following** — strong instruction following abilities. - 🧠 **Basic Reasoning** — handles lightweight reasoning and ReAct-style interactions. - ⚡ **Lightweight** — runs on local hardware with minimal resources.
---
## 🧪 Training Overview
**Base model:** [`SmolLM2-135M-Instruct`](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct) **Fine-tuning method:** [Dynamic Fine-Tuning (DFT)](https://github.com/yongliang-wu/DFT/tree/master) **Hardware:** Apple Mac M1 (16 GB Unified Memory) using MLX.
### 📚 Datasets Used- `microsoft/orca-agentinstruct-1M-v1` — agentic tasks, RAG answers, classification - `microsoft/orca-math-word-problems-200k` — lightweight reasoning - `allenai/tulu-3-sft-personas-instruction-following` — instruction following - `xingyaoww/code-act` — ReAct style reasoning and action - `m-a-p/Code-Feedback` — alignment via feedback - `HuggingFaceTB/smoltalk` + `/apigen` — tool calling stabilization - `weijie210/gsm8k_decomposed` — question decomposition - `Locutusque/function-calling-chatml` — tool call response structure
---
## ⚠️ Disclaimer
This is a **beta model**. - It may produce **incorrect** or **incomplete** outputs. - Tool call execution is **basic** and can fail in some cases. - Intended for **research and experimentation** only — not production use.
---
## 🧭 Roadmap
- ✅ Initial release with DFT fine-tuning - 🧪 Benchmarking on agentic tasks - ~~🔬 Experimenting with GRPO for tool calling (failed)~~- 🧠 Weight merging experiments for improved performance- Add more tool calling dataset
---
## 📥 Model Size
- 135M parameters - ~135 MB in 8-bit precision - 8k context length
---
## ⚡ Example Usage
```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "quwsarohi/NanoAgent-135M"tokenizer = AutoTokenizer.from_pretrained(model_name)model = AutoModelForCausalLM.from_pretrained(model_name)
def inference(messages, max_new_tokens=256, temperature=0.3, min_p=0.15, **kwargs): input_text = tokenizer.apply_chat_template( messages, tokenize=False, add_generation_prompt=True ) inputs = tokenizer.encode(input_text, return_tensors="pt") outputs = model.generate( inputs, max_new_tokens=max_new_tokens, do_sample=True, min_p=0.15, temperature=temperature, **kwargs ) return tokenizer.decode(outputs[0][inputs.shape[1] :], skip_special_tokens=True)
messages = [{"role": "user", "content": "Hi! Do you have a name?"}]print(inference(messages))```
Use the following template for tool calling:```pythonTOOL_TEMPLATE = """You are a helpful AI assistant. You have a set of possible functions/tools inside <tools></tools> tags. Based on question, you may need to make one or more function/tool calls to answer user.
You have access to the following tools/functions:<tools>{tools}</tools>
For each function call, return a JSON list object with function name and arguments within <tool_call></tool_call> tags."""```
Sample tool call definition:```json{ "name": "web_search", "description": "Performs a web search for a query and returns a string of the top search results formatted as markdown with titles, links, and descriptions.", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "The search query to perform.", } }, "required": ["query"], },}```1234567891011{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>systemYou are a helpful AI assistant. <|im_end|>' }}{% endif %}{{'<|im_start|>' + message['role'] + '' + message['content'] + '<|im_end|>'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant' }}{% endif %}1234567891011121314151617181920212223242526272829303132333435363738{ "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "eos_token_id": 2, "head_dim": 64, "hidden_act": "silu", "hidden_size": 576, "initializer_range": 0.041666666666666664, "intermediate_size": 1536, "is_llama_config": true, "max_position_embeddings": 8192, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 9, "num_hidden_layers": 30, "num_key_value_heads": 3, "pad_token_id": 2, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_interleaved": false, "rope_scaling": null, "rope_theta": 100000, "tie_word_embeddings": true, "torch_dtype": "bfloat16", "transformers.js_config": { "kv_cache_dtype": { "fp16": "float16", "q4f16": "float16" } }, "transformers_version": "4.55.4", "use_cache": true, "vocab_size": 49152}1234567{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 1, "pad_token_id": 2, "transformers_version": "4.42.3"}123version https://git-lfs.github.com/spec/v1oid sha256:b788815ccc4faf78f3a7cdd527b4b2306884ddf73a3b770d63e3e791ebf23ca0size 269060552123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280{ "metadata": { "total_size": 269030016, "total_parameters": 134515008 }, "weight_map": { "model.embed_tokens.weight": "model.safetensors", "model.layers.0.input_layernorm.weight": "model.safetensors", "model.layers.0.mlp.down_proj.weight": "model.safetensors", "model.layers.0.mlp.gate_proj.weight": "model.safetensors", "model.layers.0.mlp.up_proj.weight": "model.safetensors", "model.layers.0.post_attention_layernorm.weight": "model.safetensors", "model.layers.0.self_attn.k_proj.weight": "model.safetensors", "model.layers.0.self_attn.o_proj.weight": "model.safetensors", "model.layers.0.self_attn.q_proj.weight": "model.safetensors", "model.layers.0.self_attn.v_proj.weight": "model.safetensors", "model.layers.1.input_layernorm.weight": "model.safetensors", "model.layers.1.mlp.down_proj.weight": "model.safetensors", "model.layers.1.mlp.gate_proj.weight": "model.safetensors", "model.layers.1.mlp.up_proj.weight": "model.safetensors", "model.layers.1.post_attention_layernorm.weight": "model.safetensors", "model.layers.1.self_attn.k_proj.weight": "model.safetensors", "model.layers.1.self_attn.o_proj.weight": "model.safetensors", "model.layers.1.self_attn.q_proj.weight": "model.safetensors", "model.layers.1.self_attn.v_proj.weight": "model.safetensors", "model.layers.10.input_layernorm.weight": "model.safetensors", "model.layers.10.mlp.down_proj.weight": "model.safetensors", "model.layers.10.mlp.gate_proj.weight": "model.safetensors", "model.layers.10.mlp.up_proj.weight": "model.safetensors", "model.layers.10.post_attention_layernorm.weight": "model.safetensors", "model.layers.10.self_attn.k_proj.weight": "model.safetensors", "model.layers.10.self_attn.o_proj.weight": "model.safetensors", "model.layers.10.self_attn.q_proj.weight": "model.safetensors", "model.layers.10.self_attn.v_proj.weight": "model.safetensors", "model.layers.11.input_layernorm.weight": "model.safetensors", "model.layers.11.mlp.down_proj.weight": "model.safetensors", "model.layers.11.mlp.gate_proj.weight": "model.safetensors", "model.layers.11.mlp.up_proj.weight": "model.safetensors", "model.layers.11.post_attention_layernorm.weight": "model.safetensors", "model.layers.11.self_attn.k_proj.weight": "model.safetensors", "model.layers.11.self_attn.o_proj.weight": "model.safetensors", "model.layers.11.self_attn.q_proj.weight": "model.safetensors", "model.layers.11.self_attn.v_proj.weight": "model.safetensors", "model.layers.12.input_layernorm.weight": "model.safetensors", "model.layers.12.mlp.down_proj.weight": "model.safetensors", "model.layers.12.mlp.gate_proj.weight": "model.safetensors", "model.layers.12.mlp.up_proj.weight": "model.safetensors", "model.layers.12.post_attention_layernorm.weight": "model.safetensors", "model.layers.12.self_attn.k_proj.weight": "model.safetensors", "model.layers.12.self_attn.o_proj.weight": "model.safetensors", "model.layers.12.self_attn.q_proj.weight": "model.safetensors", "model.layers.12.self_attn.v_proj.weight": "model.safetensors", "model.layers.13.input_layernorm.weight": "model.safetensors", "model.layers.13.mlp.down_proj.weight": "model.safetensors", "model.layers.13.mlp.gate_proj.weight": "model.safetensors", "model.layers.13.mlp.up_proj.weight": "model.safetensors", "model.layers.13.post_attention_layernorm.weight": "model.safetensors", "model.layers.13.self_attn.k_proj.weight": "model.safetensors", "model.layers.13.self_attn.o_proj.weight": "model.safetensors", "model.layers.13.self_attn.q_proj.weight": "model.safetensors", "model.layers.13.self_attn.v_proj.weight": "model.safetensors", "model.layers.14.input_layernorm.weight": "model.safetensors", "model.layers.14.mlp.down_proj.weight": "model.safetensors", "model.layers.14.mlp.gate_proj.weight": "model.safetensors", "model.layers.14.mlp.up_proj.weight": "model.safetensors", "model.layers.14.post_attention_layernorm.weight": "model.safetensors", "model.layers.14.self_attn.k_proj.weight": "model.safetensors", "model.layers.14.self_attn.o_proj.weight": "model.safetensors", "model.layers.14.self_attn.q_proj.weight": "model.safetensors", "model.layers.14.self_attn.v_proj.weight": "model.safetensors", "model.layers.15.input_layernorm.weight": "model.safetensors", "model.layers.15.mlp.down_proj.weight": "model.safetensors", "model.layers.15.mlp.gate_proj.weight": "model.safetensors", "model.layers.15.mlp.up_proj.weight": "model.safetensors", "model.layers.15.post_attention_layernorm.weight": "model.safetensors", "model.layers.15.self_attn.k_proj.weight": "model.safetensors", "model.layers.15.self_attn.o_proj.weight": "model.safetensors", "model.layers.15.self_attn.q_proj.weight": "model.safetensors", "model.layers.15.self_attn.v_proj.weight": "model.safetensors", "model.layers.16.input_layernorm.weight": "model.safetensors", "model.layers.16.mlp.down_proj.weight": "model.safetensors", "model.layers.16.mlp.gate_proj.weight": "model.safetensors", "model.layers.16.mlp.up_proj.weight": "model.safetensors", "model.layers.16.post_attention_layernorm.weight": "model.safetensors", "model.layers.16.self_attn.k_proj.weight": "model.safetensors", "model.layers.16.self_attn.o_proj.weight": "model.safetensors", "model.layers.16.self_attn.q_proj.weight": "model.safetensors", "model.layers.16.self_attn.v_proj.weight": "model.safetensors", "model.layers.17.input_layernorm.weight": "model.safetensors", "model.layers.17.mlp.down_proj.weight": "model.safetensors", "model.layers.17.mlp.gate_proj.weight": "model.safetensors", "model.layers.17.mlp.up_proj.weight": "model.safetensors", "model.layers.17.post_attention_layernorm.weight": "model.safetensors", "model.layers.17.self_attn.k_proj.weight": "model.safetensors", "model.layers.17.self_attn.o_proj.weight": "model.safetensors", "model.layers.17.self_attn.q_proj.weight": "model.safetensors", "model.layers.17.self_attn.v_proj.weight": "model.safetensors", "model.layers.18.input_layernorm.weight": "model.safetensors", "model.layers.18.mlp.down_proj.weight": "model.safetensors", "model.layers.18.mlp.gate_proj.weight": "model.safetensors", "model.layers.18.mlp.up_proj.weight": "model.safetensors", "model.layers.18.post_attention_layernorm.weight": "model.safetensors", "model.layers.18.self_attn.k_proj.weight": "model.safetensors", "model.layers.18.self_attn.o_proj.weight": "model.safetensors", "model.layers.18.self_attn.q_proj.weight": "model.safetensors", "model.layers.18.self_attn.v_proj.weight": "model.safetensors", "model.layers.19.input_layernorm.weight": "model.safetensors", "model.layers.19.mlp.down_proj.weight": "model.safetensors", "model.layers.19.mlp.gate_proj.weight": "model.safetensors", "model.layers.19.mlp.up_proj.weight": "model.safetensors", "model.layers.19.post_attention_layernorm.weight": "model.safetensors", "model.layers.19.self_attn.k_proj.weight": "model.safetensors", "model.layers.19.self_attn.o_proj.weight": "model.safetensors", "model.layers.19.self_attn.q_proj.weight": "model.safetensors", "model.layers.19.self_attn.v_proj.weight": "model.safetensors", "model.layers.2.input_layernorm.weight": "model.safetensors", "model.layers.2.mlp.down_proj.weight": "model.safetensors", "model.layers.2.mlp.gate_proj.weight": "model.safetensors", "model.layers.2.mlp.up_proj.weight": "model.safetensors", "model.layers.2.post_attention_layernorm.weight": "model.safetensors", "model.layers.2.self_attn.k_proj.weight": "model.safetensors", "model.layers.2.self_attn.o_proj.weight": "model.safetensors", "model.layers.2.self_attn.q_proj.weight": "model.safetensors", "model.layers.2.self_attn.v_proj.weight": "model.safetensors", "model.layers.20.input_layernorm.weight": "model.safetensors", "model.layers.20.mlp.down_proj.weight": "model.safetensors", "model.layers.20.mlp.gate_proj.weight": "model.safetensors", "model.layers.20.mlp.up_proj.weight": "model.safetensors", "model.layers.20.post_attention_layernorm.weight": "model.safetensors", "model.layers.20.self_attn.k_proj.weight": "model.safetensors", "model.layers.20.self_attn.o_proj.weight": "model.safetensors", "model.layers.20.self_attn.q_proj.weight": "model.safetensors", "model.layers.20.self_attn.v_proj.weight": "model.safetensors", "model.layers.21.input_layernorm.weight": "model.safetensors", "model.layers.21.mlp.down_proj.weight": "model.safetensors", "model.layers.21.mlp.gate_proj.weight": "model.safetensors", "model.layers.21.mlp.up_proj.weight": "model.safetensors", "model.layers.21.post_attention_layernorm.weight": "model.safetensors", "model.layers.21.self_attn.k_proj.weight": "model.safetensors", "model.layers.21.self_attn.o_proj.weight": "model.safetensors", "model.layers.21.self_attn.q_proj.weight": "model.safetensors", "model.layers.21.self_attn.v_proj.weight": "model.safetensors", "model.layers.22.input_layernorm.weight": "model.safetensors", "model.layers.22.mlp.down_proj.weight": "model.safetensors", "model.layers.22.mlp.gate_proj.weight": "model.safetensors", "model.layers.22.mlp.up_proj.weight": "model.safetensors", "model.layers.22.post_attention_layernorm.weight": "model.safetensors", "model.layers.22.self_attn.k_proj.weight": "model.safetensors", "model.layers.22.self_attn.o_proj.weight": "model.safetensors", "model.layers.22.self_attn.q_proj.weight": "model.safetensors", "model.layers.22.self_attn.v_proj.weight": "model.safetensors", "model.layers.23.input_layernorm.weight": "model.safetensors", "model.layers.23.mlp.down_proj.weight": "model.safetensors", "model.layers.23.mlp.gate_proj.weight": "model.safetensors", "model.layers.23.mlp.up_proj.weight": "model.safetensors", "model.layers.23.post_attention_layernorm.weight": "model.safetensors", "model.layers.23.self_attn.k_proj.weight": "model.safetensors", "model.layers.23.self_attn.o_proj.weight": "model.safetensors", "model.layers.23.self_attn.q_proj.weight": "model.safetensors", "model.layers.23.self_attn.v_proj.weight": "model.safetensors", "model.layers.24.input_layernorm.weight": "model.safetensors", "model.layers.24.mlp.down_proj.weight": "model.safetensors", "model.layers.24.mlp.gate_proj.weight": "model.safetensors", "model.layers.24.mlp.up_proj.weight": "model.safetensors", "model.layers.24.post_attention_layernorm.weight": "model.safetensors", "model.layers.24.self_attn.k_proj.weight": "model.safetensors", "model.layers.24.self_attn.o_proj.weight": "model.safetensors", "model.layers.24.self_attn.q_proj.weight": "model.safetensors", "model.layers.24.self_attn.v_proj.weight": "model.safetensors", "model.layers.25.input_layernorm.weight": "model.safetensors", "model.layers.25.mlp.down_proj.weight": "model.safetensors", "model.layers.25.mlp.gate_proj.weight": "model.safetensors", "model.layers.25.mlp.up_proj.weight": "model.safetensors", "model.layers.25.post_attention_layernorm.weight": "model.safetensors", "model.layers.25.self_attn.k_proj.weight": "model.safetensors", "model.layers.25.self_attn.o_proj.weight": "model.safetensors", "model.layers.25.self_attn.q_proj.weight": "model.safetensors", "model.layers.25.self_attn.v_proj.weight": "model.safetensors", "model.layers.26.input_layernorm.weight": "model.safetensors", "model.layers.26.mlp.down_proj.weight": "model.safetensors", "model.layers.26.mlp.gate_proj.weight": "model.safetensors", "model.layers.26.mlp.up_proj.weight": "model.safetensors", "model.layers.26.post_attention_layernorm.weight": "model.safetensors", "model.layers.26.self_attn.k_proj.weight": "model.safetensors", "model.layers.26.self_attn.o_proj.weight": "model.safetensors", "model.layers.26.self_attn.q_proj.weight": "model.safetensors", "model.layers.26.self_attn.v_proj.weight": "model.safetensors", "model.layers.27.input_layernorm.weight": "model.safetensors", "model.layers.27.mlp.down_proj.weight": "model.safetensors", "model.layers.27.mlp.gate_proj.weight": "model.safetensors", "model.layers.27.mlp.up_proj.weight": "model.safetensors", "model.layers.27.post_attention_layernorm.weight": "model.safetensors", "model.layers.27.self_attn.k_proj.weight": "model.safetensors", "model.layers.27.self_attn.o_proj.weight": "model.safetensors", "model.layers.27.self_attn.q_proj.weight": "model.safetensors", "model.layers.27.self_attn.v_proj.weight": "model.safetensors", "model.layers.28.input_layernorm.weight": "model.safetensors", "model.layers.28.mlp.down_proj.weight": "model.safetensors", "model.layers.28.mlp.gate_proj.weight": "model.safetensors", "model.layers.28.mlp.up_proj.weight": "model.safetensors", "model.layers.28.post_attention_layernorm.weight": "model.safetensors", "model.layers.28.self_attn.k_proj.weight": "model.safetensors", "model.layers.28.self_attn.o_proj.weight": "model.safetensors", "model.layers.28.self_attn.q_proj.weight": "model.safetensors", "model.layers.28.self_attn.v_proj.weight": "model.safetensors", "model.layers.29.input_layernorm.weight": "model.safetensors", "model.layers.29.mlp.down_proj.weight": "model.safetensors", "model.layers.29.mlp.gate_proj.weight": "model.safetensors", "model.layers.29.mlp.up_proj.weight": "model.safetensors", "model.layers.29.post_attention_layernorm.weight": "model.safetensors", "model.layers.29.self_attn.k_proj.weight": "model.safetensors", "model.layers.29.self_attn.o_proj.weight": "model.safetensors", "model.layers.29.self_attn.q_proj.weight": "model.safetensors", "model.layers.29.self_attn.v_proj.weight": "model.safetensors", "model.layers.3.input_layernorm.weight": "model.safetensors", "model.layers.3.mlp.down_proj.weight": "model.safetensors", "model.layers.3.mlp.gate_proj.weight": "model.safetensors", "model.layers.3.mlp.up_proj.weight": "model.safetensors", "model.layers.3.post_attention_layernorm.weight": "model.safetensors", "model.layers.3.self_attn.k_proj.weight": "model.safetensors", "model.layers.3.self_attn.o_proj.weight": "model.safetensors", "model.layers.3.self_attn.q_proj.weight": "model.safetensors", "model.layers.3.self_attn.v_proj.weight": "model.safetensors", "model.layers.4.input_layernorm.weight": "model.safetensors", "model.layers.4.mlp.down_proj.weight": "model.safetensors", "model.layers.4.mlp.gate_proj.weight": "model.safetensors", "model.layers.4.mlp.up_proj.weight": "model.safetensors", "model.layers.4.post_attention_layernorm.weight": "model.safetensors", "model.layers.4.self_attn.k_proj.weight": "model.safetensors", "model.layers.4.self_attn.o_proj.weight": "model.safetensors", "model.layers.4.self_attn.q_proj.weight": "model.safetensors", "model.layers.4.self_attn.v_proj.weight": "model.safetensors", "model.layers.5.input_layernorm.weight": "model.safetensors", "model.layers.5.mlp.down_proj.weight": "model.safetensors", "model.layers.5.mlp.gate_proj.weight": "model.safetensors", "model.layers.5.mlp.up_proj.weight": "model.safetensors", "model.layers.5.post_attention_layernorm.weight": "model.safetensors", "model.layers.5.self_attn.k_proj.weight": "model.safetensors", "model.layers.5.self_attn.o_proj.weight": "model.safetensors", "model.layers.5.self_attn.q_proj.weight": "model.safetensors", "model.layers.5.self_attn.v_proj.weight": "model.safetensors", "model.layers.6.input_layernorm.weight": "model.safetensors", "model.layers.6.mlp.down_proj.weight": "model.safetensors", "model.layers.6.mlp.gate_proj.weight": "model.safetensors", "model.layers.6.mlp.up_proj.weight": "model.safetensors", "model.layers.6.post_attention_layernorm.weight": "model.safetensors", "model.layers.6.self_attn.k_proj.weight": "model.safetensors", "model.layers.6.self_attn.o_proj.weight": "model.safetensors", "model.layers.6.self_attn.q_proj.weight": "model.safetensors", "model.layers.6.self_attn.v_proj.weight": "model.safetensors", "model.layers.7.input_layernorm.weight": "model.safetensors", "model.layers.7.mlp.down_proj.weight": "model.safetensors", "model.layers.7.mlp.gate_proj.weight": "model.safetensors", "model.layers.7.mlp.up_proj.weight": "model.safetensors", "model.layers.7.post_attention_layernorm.weight": "model.safetensors", "model.layers.7.self_attn.k_proj.weight": "model.safetensors", "model.layers.7.self_attn.o_proj.weight": "model.safetensors", "model.layers.7.self_attn.q_proj.weight": "model.safetensors", "model.layers.7.self_attn.v_proj.weight": "model.safetensors", "model.layers.8.input_layernorm.weight": "model.safetensors", "model.layers.8.mlp.down_proj.weight": "model.safetensors", "model.layers.8.mlp.gate_proj.weight": "model.safetensors", "model.layers.8.mlp.up_proj.weight": "model.safetensors", "model.layers.8.post_attention_layernorm.weight": "model.safetensors", "model.layers.8.self_attn.k_proj.weight": "model.safetensors", "model.layers.8.self_attn.o_proj.weight": "model.safetensors", "model.layers.8.self_attn.q_proj.weight": "model.safetensors", "model.layers.8.self_attn.v_proj.weight": "model.safetensors", "model.layers.9.input_layernorm.weight": "model.safetensors", "model.layers.9.mlp.down_proj.weight": "model.safetensors", "model.layers.9.mlp.gate_proj.weight": "model.safetensors", "model.layers.9.mlp.up_proj.weight": "model.safetensors", "model.layers.9.post_attention_layernorm.weight": "model.safetensors", "model.layers.9.self_attn.k_proj.weight": "model.safetensors", "model.layers.9.self_attn.o_proj.weight": "model.safetensors", "model.layers.9.self_attn.q_proj.weight": "model.safetensors", "model.layers.9.self_attn.v_proj.weight": "model.safetensors", "model.norm.weight": "model.safetensors" }}12345678910111213141516171819202122232425262728293031323334{ "additional_special_tokens": [ "<|im_start|>", "<|im_end|>" ], "bos_token": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<repo_name>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "4": { "content": "<reponame>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "5": { "content": "<file_sep>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "6": { "content": "<filename>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "7": { "content": "<gh_stars>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "8": { "content": "<issue_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "9": { "content": "<issue_comment>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "10": { "content": "<issue_closed>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "11": { "content": "<jupyter_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "12": { "content": "<jupyter_text>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "13": { "content": "<jupyter_code>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "14": { "content": "<jupyter_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "15": { "content": "<jupyter_script>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "16": { "content": "<empty_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<|im_start|>", "<|im_end|>" ], "bos_token": "<|im_start|>", "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "model_max_length": 8192, "pad_token": "<|im_end|>", "tokenizer_class": "GPT2Tokenizer", "unk_token": "<|endoftext|>", "vocab_size": 49152}.gitattributesAdded+36
ModelfileAdded+25
README.mdAdded+149
chat_template.jinjaAdded+11
config.jsonAdded+38
generation_config.jsonAdded+7
merges.txtAdded
model.safetensorsAdded+3
model.safetensors.index.jsonAdded+280
special_tokens_map.jsonAdded+34
tokenizer.jsonAdded
tokenizer_config.jsonAdded+154
train_graph.pngAdded

train_info.jsonAdded
vocab.jsonAdded