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,10 +53,10 @@ model-index:
|
|
| 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**: ~
|
| 60 |
- **High Quality Data**: Trained on curated RefinedWeb subset
|
| 61 |
|
| 62 |
## Architecture Details
|
|
@@ -96,7 +96,7 @@ model-index:
|
|
| 96 |
## Training Procedure
|
| 97 |
|
| 98 |
### Training Configuration
|
| 99 |
-
- **Hardware**: NVIDIA RTX 5070 (8GB VRAM)
|
| 100 |
- **Precision**: bfloat16 mixed precision
|
| 101 |
- **Batch Size**: 1 per device
|
| 102 |
- **Gradient Accumulation**: 32 steps
|
|
@@ -128,7 +128,7 @@ model-index:
|
|
| 128 |
- **Convergence**: Smooth loss curve, no overfitting
|
| 129 |
|
| 130 |
### Inference Performance
|
| 131 |
-
- **Speed**: ~
|
| 132 |
- **Memory Usage**: 1.3GB for 1,800 token context
|
| 133 |
- **Context Limit**: 3,600 tokens practical limit
|
| 134 |
- **Temperature**: Recommended 0.7-0.9 for creative tasks
|
|
@@ -221,26 +221,13 @@ python interactive_chat.py
|
|
| 221 |
title={MAP-NEO Mini: An Efficient 253M Parameter Language Model},
|
| 222 |
author={[Antony Austin]},
|
| 223 |
year={2025},
|
| 224 |
-
howpublished={\url{https://huggingface.co/
|
| 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
|
| 236 |
-
βββ tokenizer.json # Tokenizer configuration
|
| 237 |
-
βββ tokenizer_config.json # Tokenizer metadata
|
| 238 |
-
βββ special_tokens_map.json # Special tokens
|
| 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
|
| 246 |
- **Recommended**: 8GB VRAM for extended context
|
|
|
|
| 53 |
|
| 54 |
## Key Features
|
| 55 |
|
| 56 |
+
- **Efficient Training**: Trained on RTX 5070 Laptop GPU (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**: ~150+ tokens/second on consumer GPU
|
| 60 |
- **High Quality Data**: Trained on curated RefinedWeb subset
|
| 61 |
|
| 62 |
## Architecture Details
|
|
|
|
| 96 |
## Training Procedure
|
| 97 |
|
| 98 |
### Training Configuration
|
| 99 |
+
- **Hardware**: NVIDIA RTX 5070 Laptop GPU (8GB VRAM)
|
| 100 |
- **Precision**: bfloat16 mixed precision
|
| 101 |
- **Batch Size**: 1 per device
|
| 102 |
- **Gradient Accumulation**: 32 steps
|
|
|
|
| 128 |
- **Convergence**: Smooth loss curve, no overfitting
|
| 129 |
|
| 130 |
### Inference Performance
|
| 131 |
+
- **Speed**: ~150+ tokens/second (RTX 5070)
|
| 132 |
- **Memory Usage**: 1.3GB for 1,800 token context
|
| 133 |
- **Context Limit**: 3,600 tokens practical limit
|
| 134 |
- **Temperature**: Recommended 0.7-0.9 for creative tasks
|
|
|
|
| 221 |
title={MAP-NEO Mini: An Efficient 253M Parameter Language Model},
|
| 222 |
author={[Antony Austin]},
|
| 223 |
year={2025},
|
| 224 |
+
howpublished={\url{https://huggingface.co/Austin207/Map-NEO}},
|
| 225 |
+
note={Trained on NVIDIA RTX 5070 Laptop GPU with RefinedWeb data}
|
| 226 |
}
|
| 227 |
```
|
| 228 |
|
| 229 |
## Technical Details
|
| 230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
### Hardware Requirements
|
| 232 |
- **Minimum**: 4GB VRAM for inference
|
| 233 |
- **Recommended**: 8GB VRAM for extended context
|