Instructions to use RessAI/Onner-300m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RessAI/Onner-300m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RessAI/Onner-300m")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("RessAI/Onner-300m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RessAI/Onner-300m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RessAI/Onner-300m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RessAI/Onner-300m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RessAI/Onner-300m
- SGLang
How to use RessAI/Onner-300m 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 "RessAI/Onner-300m" \ --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": "RessAI/Onner-300m", "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 "RessAI/Onner-300m" \ --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": "RessAI/Onner-300m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use RessAI/Onner-300m with Docker Model Runner:
docker model run hf.co/RessAI/Onner-300m
File size: 1,707 Bytes
6b70a03 b37d57d 6b70a03 b37d57d 6b70a03 b37d57d 6b70a03 b37d57d 6b70a03 5b5d13f 6b70a03 b37d57d 5b5d13f 6b70a03 b37d57d 6b70a03 b37d57d 5b5d13f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | ---
license: apache-2.0
datasets:
- HuggingFaceFW/fineweb-edu
language:
- en
library_name: transformers
tags:
- pytorch
- causal-lm
- text-generation
- onner
---
# 🚀 RessAI Onner-300m
**Onner-300m** (internally `RessAI-Ultra-300M`) is a compact, high-efficiency language model designed for educational reasoning and lightweight deployment. With approximately **200 Million parameters**, it follows a "Dense & Deep" philosophy scaled down for speed and accessibility.
It is trained on the high-quality [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) dataset, utilizing a custom architecture (`RessAiForCausalLM`) optimized for efficient inference.
<div align="center">
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers_logo_name.png" width="200"/>
</div>
## 🔍 Model Details
- **Model Name:** RessAI Onner-300m
- **Organization:** RessAI
- **Architecture:** `RessAiForCausalLM`
- **Model Type:** `onner`
- **Parameters:** ~199.9 Million (0.20B)
- **Context Window:** 4,096 tokens
- **Vocabulary:** 128,256
- **Training Precision:** Bfloat16
- **License:** Apache 2.0
## 🧠 Technical Specifications
This model uses a custom configuration inspired by BERT-base sizing but with Llama's causal attention mechanisms:
| Hyperparameter | Value | Description |
| :--- | :--- | :--- |
| **Hidden Size** | 768 | Embedding dimension (Compact) |
| **Layers** | 12 | Network depth |
| **Attention Heads** | 12 | Query heads |
| **KV Heads** | 2 | Grouped Query Attention (GQA 6:1) |
| **Intermediate Size** | 3,072 | MLP Width |
| **RoPE Theta** | 500,000 | Rotary Embeddings Base |
| **Max Sequence** | 4,096 | Context Length | |