Text Generation
Transformers
PyTorch
English
custom-architecture
rope
rmsnorm
swiglu
flash-attention
16k-context
Eval Results (legacy)
Instructions to use Austin207/Map-NEO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Austin207/Map-NEO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Austin207/Map-NEO")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Austin207/Map-NEO", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Austin207/Map-NEO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Austin207/Map-NEO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Austin207/Map-NEO", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Austin207/Map-NEO
- SGLang
How to use Austin207/Map-NEO 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 "Austin207/Map-NEO" \ --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": "Austin207/Map-NEO", "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 "Austin207/Map-NEO" \ --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": "Austin207/Map-NEO", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Austin207/Map-NEO with Docker Model Runner:
docker model run hf.co/Austin207/Map-NEO
Update README.md
Browse files
README.md
CHANGED
|
@@ -53,11 +53,11 @@ model-index:
|
|
| 53 |
|
| 54 |
## Key Features
|
| 55 |
|
| 56 |
-
-
|
| 57 |
-
-
|
| 58 |
-
-
|
| 59 |
-
-
|
| 60 |
-
-
|
| 61 |
|
| 62 |
## Architecture Details
|
| 63 |
|
|
@@ -136,7 +136,7 @@ model-index:
|
|
| 136 |
## Usage
|
| 137 |
|
| 138 |
### Quick Start
|
| 139 |
-
|
| 140 |
import torch
|
| 141 |
from transformers import AutoTokenizer
|
| 142 |
from model_neo import NeoMini, NeoMiniConfig
|
|
@@ -157,11 +157,11 @@ input_ids = tokenizer.encode(prompt, return_tensors="pt")
|
|
| 157 |
with torch.no_grad():
|
| 158 |
output = model.generate(input_ids, max_length=100, temperature=0.8)
|
| 159 |
print(tokenizer.decode(output))
|
| 160 |
-
|
| 161 |
### Interactive Chat
|
| 162 |
-
|
| 163 |
python interactive_chat.py
|
| 164 |
-
|
| 165 |
|
| 166 |
### Generation Parameters
|
| 167 |
- **Temperature**: 0.7-0.9 for creative tasks, 0.3-0.5 for factual
|
|
@@ -204,7 +204,7 @@ python interactive_chat.py
|
|
| 204 |
## Environmental Impact
|
| 205 |
|
| 206 |
### Carbon Footprint
|
| 207 |
-
- **Training Hardware**: Single RTX 5070 (
|
| 208 |
- **Training Time**: 4 hours
|
| 209 |
- **Estimated COβ**: ~0.3 kg COβ equivalent
|
| 210 |
- **Efficiency**: 253M parameters per 0.3 kg COβ
|
|
@@ -216,7 +216,7 @@ python interactive_chat.py
|
|
| 216 |
|
| 217 |
## Citation
|
| 218 |
|
| 219 |
-
|
| 220 |
@misc{mapneo_mini_2025,
|
| 221 |
title={MAP-NEO Mini: An Efficient 253M Parameter Language Model},
|
| 222 |
author={[Antony Austin]},
|
|
@@ -224,12 +224,12 @@ python interactive_chat.py
|
|
| 224 |
howpublished={\url{https://huggingface.co/[Austin207]/map-neo-mini}},
|
| 225 |
note={Trained on NVIDIA RTX 5070 with RefinedWeb data}
|
| 226 |
}
|
| 227 |
-
|
| 228 |
|
| 229 |
## Technical Details
|
| 230 |
|
| 231 |
### Files Structure
|
| 232 |
-
|
| 233 |
map-neo-mini/
|
| 234 |
βββ config.json # Model configuration
|
| 235 |
βββ pytorch_model.bin # Model weights
|
|
@@ -239,7 +239,7 @@ map-neo-mini/
|
|
| 239 |
βββ vocab.json # Vocabulary
|
| 240 |
βββ merges.txt # BPE merges
|
| 241 |
βββ model_neo.py # Model architecture code
|
| 242 |
-
|
| 243 |
|
| 244 |
### Hardware Requirements
|
| 245 |
- **Minimum**: 4GB VRAM for inference
|
|
|
|
| 53 |
|
| 54 |
## Key Features
|
| 55 |
|
| 56 |
+
- **Efficient Training**: Trained on RTX 5070 (8GB VRAM) in ~4 hours
|
| 57 |
+
- **Extended Context**: 16,384 token context window (16x typical small models)
|
| 58 |
+
- **Memory Efficient**: Only 1.3GB VRAM for 1,800 tokens inference
|
| 59 |
+
- **Fast Inference**: ~10 tokens/second on consumer GPU
|
| 60 |
+
- **High Quality Data**: Trained on curated RefinedWeb subset
|
| 61 |
|
| 62 |
## Architecture Details
|
| 63 |
|
|
|
|
| 136 |
## Usage
|
| 137 |
|
| 138 |
### Quick Start
|
| 139 |
+
```
|
| 140 |
import torch
|
| 141 |
from transformers import AutoTokenizer
|
| 142 |
from model_neo import NeoMini, NeoMiniConfig
|
|
|
|
| 157 |
with torch.no_grad():
|
| 158 |
output = model.generate(input_ids, max_length=100, temperature=0.8)
|
| 159 |
print(tokenizer.decode(output))
|
| 160 |
+
```
|
| 161 |
### Interactive Chat
|
| 162 |
+
```
|
| 163 |
python interactive_chat.py
|
| 164 |
+
```
|
| 165 |
|
| 166 |
### Generation Parameters
|
| 167 |
- **Temperature**: 0.7-0.9 for creative tasks, 0.3-0.5 for factual
|
|
|
|
| 204 |
## Environmental Impact
|
| 205 |
|
| 206 |
### Carbon Footprint
|
| 207 |
+
- **Training Hardware**: Single RTX 5070 Laptop GPU (100W)
|
| 208 |
- **Training Time**: 4 hours
|
| 209 |
- **Estimated COβ**: ~0.3 kg COβ equivalent
|
| 210 |
- **Efficiency**: 253M parameters per 0.3 kg COβ
|
|
|
|
| 216 |
|
| 217 |
## Citation
|
| 218 |
|
| 219 |
+
```
|
| 220 |
@misc{mapneo_mini_2025,
|
| 221 |
title={MAP-NEO Mini: An Efficient 253M Parameter Language Model},
|
| 222 |
author={[Antony Austin]},
|
|
|
|
| 224 |
howpublished={\url{https://huggingface.co/[Austin207]/map-neo-mini}},
|
| 225 |
note={Trained on NVIDIA RTX 5070 with RefinedWeb data}
|
| 226 |
}
|
| 227 |
+
```
|
| 228 |
|
| 229 |
## Technical Details
|
| 230 |
|
| 231 |
### Files Structure
|
| 232 |
+
```
|
| 233 |
map-neo-mini/
|
| 234 |
βββ config.json # Model configuration
|
| 235 |
βββ pytorch_model.bin # Model weights
|
|
|
|
| 239 |
βββ vocab.json # Vocabulary
|
| 240 |
βββ merges.txt # BPE merges
|
| 241 |
βββ model_neo.py # Model architecture code
|
| 242 |
+
```
|
| 243 |
|
| 244 |
### Hardware Requirements
|
| 245 |
- **Minimum**: 4GB VRAM for inference
|