Text Generation
Transformers
PyTorch
English
custom-architecture
rope
rmsnorm
swiglu
flash-attention
16k-context
Eval Results (legacy)
Run this model with HF Jobs
Run Austin207/Map-NEO 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/Austin207/Map-NEO. 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/Austin207/Map-NEO 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/Austin207/Map-NEO. 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/Austin207/Map-NEO. 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 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")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Austin207/Map-NEO", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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 files52 unmodified lines535455565758596061626372 unmodified lines13613713813914014114214 unmodified lines15715815916016116216316416516616736 unmodified lines2042052062072082092105 unmodified lines2162172182192202212221 unmodified line2242252262272282292302312322332342353 unmodified lines23924024124224324424552 unmodified lines## Key Features- π **Efficient Training**: Trained on RTX 5070 (8GB VRAM) in ~4 hours- π **Extended Context**: 16,384 token context window (16x typical small models)- π§ **Memory Efficient**: Only 1.3GB VRAM for 1,800 tokens inference- β‘ **Fast Inference**: ~10 tokens/second on consumer GPU- π― **High Quality Data**: Trained on curated RefinedWeb subset## Architecture Details72 unmodified lines## Usage### Quick Start---import torchfrom transformers import AutoTokenizerfrom model_neo import NeoMini, NeoMiniConfig14 unmodified lineswith torch.no_grad():output = model.generate(input_ids, max_length=100, temperature=0.8)print(tokenizer.decode(output))---### Interactive Chat---python interactive_chat.py---### Generation Parameters- **Temperature**: 0.7-0.9 for creative tasks, 0.3-0.5 for factual36 unmodified lines## Environmental Impact### Carbon Footprint- **Training Hardware**: Single RTX 5070 (200W)- **Training Time**: 4 hours- **Estimated COβ**: ~0.3 kg COβ equivalent- **Efficiency**: 253M parameters per 0.3 kg COβ5 unmodified lines## Citation---@misc{mapneo_mini_2025,title={MAP-NEO Mini: An Efficient 253M Parameter Language Model},author={[Antony Austin]},1 unmodified linehowpublished={\url{https://huggingface.co/[Austin207]/map-neo-mini}},note={Trained on NVIDIA RTX 5070 with RefinedWeb data}}---## Technical Details### Files Structure---map-neo-mini/βββ config.json # Model configurationβββ pytorch_model.bin # Model weights3 unmodified linesβββ vocab.json # Vocabularyβββ merges.txt # BPE mergesβββ model_neo.py # Model architecture code---### Hardware Requirements- **Minimum**: 4GB VRAM for inference52 unmodified lines535455565758596061626372 unmodified lines13613713813914014114214 unmodified lines15715815916016116216316416516616736 unmodified lines2042052062072082092105 unmodified lines2162172182192202212221 unmodified line2242252262272282292302312322332342353 unmodified lines23924024124224324424552 unmodified lines## Key Features- **Efficient Training**: Trained on RTX 5070 (8GB VRAM) in ~4 hours- **Extended Context**: 16,384 token context window (16x typical small models)- **Memory Efficient**: Only 1.3GB VRAM for 1,800 tokens inference- **Fast Inference**: ~10 tokens/second on consumer GPU- **High Quality Data**: Trained on curated RefinedWeb subset## Architecture Details72 unmodified lines## Usage### Quick Start```import torchfrom transformers import AutoTokenizerfrom model_neo import NeoMini, NeoMiniConfig14 unmodified lineswith torch.no_grad():output = model.generate(input_ids, max_length=100, temperature=0.8)print(tokenizer.decode(output))```### Interactive Chat```python interactive_chat.py```### Generation Parameters- **Temperature**: 0.7-0.9 for creative tasks, 0.3-0.5 for factual36 unmodified lines## Environmental Impact### Carbon Footprint- **Training Hardware**: Single RTX 5070 Laptop GPU (100W)- **Training Time**: 4 hours- **Estimated COβ**: ~0.3 kg COβ equivalent- **Efficiency**: 253M parameters per 0.3 kg COβ5 unmodified lines## Citation```@misc{mapneo_mini_2025,title={MAP-NEO Mini: An Efficient 253M Parameter Language Model},author={[Antony Austin]},1 unmodified linehowpublished={\url{https://huggingface.co/[Austin207]/map-neo-mini}},note={Trained on NVIDIA RTX 5070 with RefinedWeb data}}```## Technical Details### Files Structure```map-neo-mini/βββ config.json # Model configurationβββ pytorch_model.bin # Model weights3 unmodified linesβββ vocab.json # Vocabularyβββ merges.txt # BPE mergesβββ model_neo.py # Model architecture code```### Hardware Requirements- **Minimum**: 4GB VRAM for inference
README.md+14-14