Text Generation
Transformers
Safetensors
English
grt
geometric-rotation-transformer
causal-lm
rotational
Instructions to use MatterWaveAI/grt-10m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MatterWaveAI/grt-10m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MatterWaveAI/grt-10m")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MatterWaveAI/grt-10m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MatterWaveAI/grt-10m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MatterWaveAI/grt-10m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MatterWaveAI/grt-10m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MatterWaveAI/grt-10m
- SGLang
How to use MatterWaveAI/grt-10m 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 "MatterWaveAI/grt-10m" \ --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": "MatterWaveAI/grt-10m", "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 "MatterWaveAI/grt-10m" \ --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": "MatterWaveAI/grt-10m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MatterWaveAI/grt-10m with Docker Model Runner:
docker model run hf.co/MatterWaveAI/grt-10m
Update GRT-10M card header to NeurIPS Submission baseline
Browse files
README.md
CHANGED
|
@@ -5,7 +5,6 @@ tags:
|
|
| 5 |
- geometric-rotation-transformer
|
| 6 |
- causal-lm
|
| 7 |
- rotational
|
| 8 |
-
- neurips-reject
|
| 9 |
datasets:
|
| 10 |
- nvidia/Nemotron-Pretraining-Dataset-sample
|
| 11 |
language:
|
|
@@ -14,9 +13,9 @@ library_name: transformers
|
|
| 14 |
pipeline_tag: text-generation
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# GRT-10M: From NeurIPS
|
| 18 |
|
| 19 |
-
> **Note:** `GRT-10M` (`8.7M` total parameters, `2.2M` non-embedding backbone parameters) was originally built as the small-scale proof-of-concept for
|
| 20 |
|
| 21 |
A Geometric Rotation Transformer pretrained on Nemotron. GRT replaces the dense
|
| 22 |
linear projections of a standard transformer with cascades of learned Givens
|
|
|
|
| 5 |
- geometric-rotation-transformer
|
| 6 |
- causal-lm
|
| 7 |
- rotational
|
|
|
|
| 8 |
datasets:
|
| 9 |
- nvidia/Nemotron-Pretraining-Dataset-sample
|
| 10 |
language:
|
|
|
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# GRT-10M: From NeurIPS Submission (`PairAdam`) to Symplectic/Huygens Optimization
|
| 17 |
|
| 18 |
+
> **Note:** `GRT-10M` (`8.7M` total parameters, `2.2M` non-embedding backbone parameters) was originally built as the small-scale proof-of-concept for our NeurIPS submission using first-generation `PairAdam`. Keeping the exact same `8.7M` NeurIPS submission checkpoint and swapping in our new classical geometric optimizers (`SymplecticAdam` and `HuygensSymplecticAdam`) lifts 9-task `SLM-Bench` multiple-choice accuracy from **`37.61%` (`PairAdam`) $\rightarrow$ `41.71%` (`HuygensSymplecticAdam`)** and cuts `GSM8K` math perplexity from **`145.9` $\rightarrow$ `30.1` (`4.85×` reduction)**.
|
| 19 |
|
| 20 |
A Geometric Rotation Transformer pretrained on Nemotron. GRT replaces the dense
|
| 21 |
linear projections of a standard transformer with cascades of learned Givens
|