Run this model with HF Jobs
Run KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile 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/KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile. 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/KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile 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/KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile. 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.
Instructions to use KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile") 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("KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile") model = AutoModelForCausalLM.from_pretrained("KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile", 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]:])) - Transformers.js
How to use KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile'); - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile
- SGLang
How to use KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile 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 "KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile" \ --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": "KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile", "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 "KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile" \ --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": "KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile with Docker Model Runner:
docker model run hf.co/KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile
KrynexAI 1.6
๐ Table of Contents
๐ Model Summary
KrynexAI 1.6 Instruct is a compact language model with 350M parameters. It is capable of solving a wide range of tasks while being lightweight enough to run on-device.
KrynexAI 1.6 demonstrates significant advances in instruction following, knowledge, reasoning. The model was trained on 4 trillion tokens using a diverse dataset combination: FineWeb-Edu, DCLM, The Stack, along with new filtered datasets we curated and will release soon. We developed the instruct version through supervised fine-tuning (SFT) using a combination of public datasets and our own curated datasets. We then applied Direct Preference Optimization (DPO) using UltraFeedback.
The instruct model additionally supports tasks such as text rewriting, summarization and function calling thanks to datasets developed by Argilla such as Synth-APIGen-v0.1.
๐ Model Details
| Property | Value |
|---|---|
| Name | KrynexAI 1.6 |
| Parameters | 350M |
| Architecture | Transformer decoder |
| Pretraining tokens | 4T |
| Precision | bfloat16 |
| Language | English |
| Task | Text generation |
| Training hardware | 64 H100 |
| Training framework | nanotron |
| Post-training | Supervised fine-tuning (SFT) + Direct Preference Optimization (DPO) |
| License | Apache 2.0 |
๐ Capabilities
- Instruction following โ responds to user instructions and conversational prompts.
- Knowledge and reasoning โ handles general knowledge questions and multi-step reasoning.
- Text generation โ produces coherent English text for a variety of topics.
- Text rewriting and summarization โ supported by the instruct version.
- Function calling โ supported by the instruct version.
- On-device friendly โ compact enough to run locally on modest hardware.
๐ Evaluation
In this section, we report the evaluation results of KrynexAI 1.6. All evaluations are zero-shot unless stated otherwise, and we use lighteval to run them.
๐๏ธ Base Pre-Trained Model
| Metrics | KrynexAI 1.6 |
|---|---|
| HellaSwag | 54.5 |
| ARC (Average) | 53.0 |
| PIQA | 71.7 |
| MMLU (cloze) | 35.8 |
| CommonsenseQA | 38.0 |
| TriviaQA | 16.9 |
| Winogrande | 52.5 |
| OpenBookQA | 37.4 |
| GSM8K (5-shot) | 3.2 |
๐ฌ Instruction Model
| Metric | KrynexAI 1.6 |
|---|---|
| IFEval (Average prompt/inst) | 41.0 |
| MT-Bench | 3.66 |
| HellaSwag | 52.1 |
| ARC (Average) | 43.7 |
| PIQA | 70.8 |
| MMLU (cloze) | 32.8 |
| BBH (3-shot) | 27.3 |
| GSM8K (5-shot) | 7.43 |
๐ What the metrics measure
- HellaSwag โ commonsense sentence completion.
- ARC (Average) โ science question answering.
- PIQA โ physical commonsense reasoning.
- MMLU (cloze) โ broad academic knowledge.
- CommonsenseQA โ everyday commonsense question answering.
- TriviaQA โ factual trivia knowledge.
- Winogrande โ pronoun resolution and coreference.
- OpenBookQA โ science facts combined with reasoning.
- GSM8K (5-shot) โ grade-school mathematics with five examples.
- IFEval โ how accurately the model follows explicit instructions.
- MT-Bench โ quality of multi-turn conversation.
- BBH (3-shot) โ complex reasoning tasks with three examples.
๐ฆ Formats
KrynexAI 1.6 is distributed in several formats to fit different setups:
- Safetensors โ the standard weight format for Transformers.
- ONNX โ for optimized inference across runtimes.
- Transformers.js โ for running the model directly in JavaScript environments.
๐งฑ GGUF
GGUF (GPT-Generated Unified Format) is a binary file format designed for storing and running large language models. It bundles the model weights, tokenizer, configuration and metadata into a single file, which makes distribution and loading straightforward.
Key characteristics:
- Single-file distribution โ weights, tokenizer and settings are stored together.
- Quantization support โ weights can be saved at reduced precision, for example 4-bit or 8-bit, which significantly lowers memory usage.
- Broad runtime support โ used by llama.cpp and many compatible tools for CPU and GPU inference.
- Fast loading โ memory-mapped loading lets the model start quickly.
Common quantization levels:
- Q4_K_M โ smallest footprint and fastest, with a modest quality trade-off.
- Q5_K_M / Q6_K โ a balance between size and output quality.
- Q8_0 โ close to the original quality with moderate compression.
- F16 โ full precision, largest file size.
Quantization trades a small amount of accuracy for a much smaller file and lower RAM requirements, which makes it practical to run KrynexAI 1.6 locally on everyday hardware. To use this format, the model is converted from its original weights into a .gguf file and then loaded by a GGUF-compatible runtime.
โ ๏ธ Limitations
KrynexAI 1.6 primarily understands and generates content in English. It can produce text on a variety of topics, but the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data. This model should be used as an assistive tool rather than a definitive source of information. Users should always verify important information and critically evaluate any generated content.
- Language coverage โ performance is focused on English; other languages are not guaranteed.
- Factual accuracy โ outputs may contain errors or hallucinations; verify important facts.
- Bias โ the model can reflect biases present in its training data.
- High-stakes use โ not intended as the sole basis for medical, legal, financial or safety-critical decisions.
๐๏ธ Training
๐ Pipeline
- Pretraining โ 4 trillion tokens from a diverse mix of FineWeb-Edu, DCLM, The Stack and additional filtered datasets.
- Supervised fine-tuning (SFT) โ public and curated instruction datasets shape the assistant behaviour.
- Direct Preference Optimization (DPO) โ preference data such as UltraFeedback refines response quality.
- Instruct capabilities โ datasets from Argilla, including Synth-APIGen-v0.1, add rewriting, summarization and function calling.
๐งฉ Model
- Architecture: Transformer decoder
- Pretraining tokens: 4T
- Precision: bfloat16
๐ฅ๏ธ Hardware
- GPUs: 64 H100
๐ป Software
- Training Framework: nanotron
โ๏ธ License
KrynexAI 1.6 is released under the Apache License 2.0 โ a permissive open-source license.
What Apache 2.0 allows
- Commercial use
- Modification and derivative works
- Distribution and redistribution
- Private use
- Use of patents held by contributors
Conditions
- Include the original license and copyright notices when distributing the model
- State clearly if you changed files
- Preserve attribution notices
Limitations
- No warranty or guarantee of fitness for a particular purpose
- No liability for damages
- No permission to use contributors' trademarks
In short, Apache 2.0 allows both research and commercial use, provided the license and attribution terms are respected.
- Downloads last month
- -
Model tree for KrynexLabs/KrynexAI-1.6-350M-Instruct-Mobile
Base model
HuggingFaceTB/SmolLM2-360M