Text Generation
Transformers
Safetensors
PyTorch
English
neolm
causal-lm
custom-code
pretrained
foundation
custom_code
Instructions to use MaagDeveloper/NeoLM-Small-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaagDeveloper/NeoLM-Small-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaagDeveloper/NeoLM-Small-Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MaagDeveloper/NeoLM-Small-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MaagDeveloper/NeoLM-Small-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaagDeveloper/NeoLM-Small-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaagDeveloper/NeoLM-Small-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MaagDeveloper/NeoLM-Small-Base
- SGLang
How to use MaagDeveloper/NeoLM-Small-Base 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 "MaagDeveloper/NeoLM-Small-Base" \ --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": "MaagDeveloper/NeoLM-Small-Base", "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 "MaagDeveloper/NeoLM-Small-Base" \ --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": "MaagDeveloper/NeoLM-Small-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MaagDeveloper/NeoLM-Small-Base with Docker Model Runner:
docker model run hf.co/MaagDeveloper/NeoLM-Small-Base
Initialize NeoLM Small with trained tokenizer and model card
Browse files- README.md +82 -0
- merges.txt +0 -0
- tokenizer.json +0 -0
- tokenizer_config.json +8 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
datasets:
|
| 5 |
+
- MaagDeveloper/NeoCorpus
|
| 6 |
+
tags:
|
| 7 |
+
- neolm
|
| 8 |
+
- tokenizer
|
| 9 |
+
- byte-level-bpe
|
| 10 |
+
- pretraining
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# NeoLM-Small-Base
|
| 14 |
+
|
| 15 |
+
NeoLM-Small-Base is a planned decoder-only language model
|
| 16 |
+
in the NeoLM family, developed from scratch.
|
| 17 |
+
|
| 18 |
+
**Current status: Tokenizer only. Model weights are not available yet.**
|
| 19 |
+
|
| 20 |
+
## Tokenizer
|
| 21 |
+
|
| 22 |
+
| Property | Value |
|
| 23 |
+
|---|---|
|
| 24 |
+
| Algorithm | ByteLevel BPE |
|
| 25 |
+
| Vocabulary size | 49,152 |
|
| 26 |
+
| Training data | NeoCorpus / foundation / train |
|
| 27 |
+
| Training documents | 1,889,952 |
|
| 28 |
+
| Pre-tokenization | GPT-style regex, 1–3 digit groups |
|
| 29 |
+
| EOS token | `<|endoftext|>` (ID 0) |
|
| 30 |
+
| PAD token | `<|pad|>` (ID 1) |
|
| 31 |
+
| BOS token | None |
|
| 32 |
+
|
| 33 |
+
The tokenizer was trained from scratch on the training split only.
|
| 34 |
+
|
| 35 |
+
## Load the Tokenizer
|
| 36 |
+
|
| 37 |
+
from transformers import AutoTokenizer
|
| 38 |
+
|
| 39 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
| 40 |
+
"MaagDeveloper/NeoLM-Small-Base"
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
+
## Dataset
|
| 44 |
+
|
| 45 |
+
Source: [NeoCorpus](https://huggingface.co/datasets/MaagDeveloper/NeoCorpus)
|
| 46 |
+
|
| 47 |
+
Configuration: `foundation`
|
| 48 |
+
|
| 49 |
+
The source dataset is derived from NVIDIA Nemotron-ClimbMix
|
| 50 |
+
through Andrej Karpathy's globally shuffled redistribution.
|
| 51 |
+
|
| 52 |
+
The dataset is published under CC BY-NC 4.0 licensing conditions.
|
| 53 |
+
|
| 54 |
+
## Model Development
|
| 55 |
+
|
| 56 |
+
The following details have not been finalized:
|
| 57 |
+
|
| 58 |
+
- Transformer architecture and parameter count
|
| 59 |
+
- Context length
|
| 60 |
+
- Training configuration and compute budget
|
| 61 |
+
- Evaluation metrics and benchmarks
|
| 62 |
+
- Pretraining checkpoints
|
| 63 |
+
|
| 64 |
+
Training stages will be recorded as versioned revisions
|
| 65 |
+
after the corresponding checkpoints are available.
|
| 66 |
+
|
| 67 |
+
## Limitations
|
| 68 |
+
|
| 69 |
+
This repository currently contains a tokenizer, not a trained
|
| 70 |
+
language model. It cannot generate text or perform inference.
|
| 71 |
+
|
| 72 |
+
The tokenizer has passed local encoding, decoding, EOS,
|
| 73 |
+
and save/reload checks.
|
| 74 |
+
|
| 75 |
+
## Attribution
|
| 76 |
+
|
| 77 |
+
Dataset sources:
|
| 78 |
+
- [NVIDIA Nemotron-ClimbMix](https://huggingface.co/datasets/nvidia/Nemotron-ClimbMix)
|
| 79 |
+
- [Karpathy ClimbMix Shuffle](https://huggingface.co/datasets/karpathy/climbmix-400b-shuffle)
|
| 80 |
+
|
| 81 |
+
NeoLM is an independent project and is not affiliated with
|
| 82 |
+
NVIDIA, Andrej Karpathy, or Hugging Face.
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": null,
|
| 4 |
+
"eos_token": "<|endoftext|>",
|
| 5 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 6 |
+
"pad_token": "<|pad|>",
|
| 7 |
+
"tokenizer_class": "TokenizersBackend"
|
| 8 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|