Text Generation
Transformers
Safetensors
grt
code
python
tool-calling
function-calling
rotational-transformer
givens-rotations
clifford-algebra
matterwave
Instructions to use MatterWaveAI/grt-30m-code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MatterWaveAI/grt-30m-code with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MatterWaveAI/grt-30m-code")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MatterWaveAI/grt-30m-code", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MatterWaveAI/grt-30m-code with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MatterWaveAI/grt-30m-code" # 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-30m-code", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MatterWaveAI/grt-30m-code
- SGLang
How to use MatterWaveAI/grt-30m-code 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-30m-code" \ --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-30m-code", "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-30m-code" \ --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-30m-code", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MatterWaveAI/grt-30m-code with Docker Model Runner:
docker model run hf.co/MatterWaveAI/grt-30m-code
Fix model card formatting (replace raw LaTeX with clean Unicode and code spans)
Browse files- SHA256SUMS +2 -2
SHA256SUMS
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
-
79219257df919cc598a75f7ae0968988ed0d33ffc1777469f9a9da39a558819d GRT_Whitepaper.pdf
|
| 2 |
-
6ed57d1c779a1faa14c5c662213d3ea7708905f33ccae3be3369eb17a3ae54cb README.md
|
| 3 |
0d5e59b6feb435bacfdb3ffc4f7017d7d08c7a8054c65f6fb9e69f120e2b6f7d config.json
|
| 4 |
386e2d8e35dfd941f5642a1148751e822c12157f43413a7a694b11e7837a007b eval_results.json
|
| 5 |
8855005a7319830582feb0ec2bde29cad5b163c3a1682ed3eb69c7d0d59e53cb generation_config.json
|
|
|
|
| 6 |
11ac67b25baec1f95808d8093ecc27ba4e0b3742318ca60d971448cc46d714d1 model.safetensors
|
| 7 |
5cbf4aa8575f35c43e5c4f3822427b233bfa5c52fd1db896389f7d3252723b1b optimizer_ablation_results.json
|
|
|
|
| 8 |
be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506 tokenizer.json
|
| 9 |
5f007d04324afa93876e2a484190e868136c69dfe0e1a29a1063eae583df9d32 tokenizer_config.json
|
|
|
|
|
|
|
|
|
|
| 1 |
0d5e59b6feb435bacfdb3ffc4f7017d7d08c7a8054c65f6fb9e69f120e2b6f7d config.json
|
| 2 |
386e2d8e35dfd941f5642a1148751e822c12157f43413a7a694b11e7837a007b eval_results.json
|
| 3 |
8855005a7319830582feb0ec2bde29cad5b163c3a1682ed3eb69c7d0d59e53cb generation_config.json
|
| 4 |
+
79219257df919cc598a75f7ae0968988ed0d33ffc1777469f9a9da39a558819d GRT_Whitepaper.pdf
|
| 5 |
11ac67b25baec1f95808d8093ecc27ba4e0b3742318ca60d971448cc46d714d1 model.safetensors
|
| 6 |
5cbf4aa8575f35c43e5c4f3822427b233bfa5c52fd1db896389f7d3252723b1b optimizer_ablation_results.json
|
| 7 |
+
07d4927c305b1ad08e05a53a30f8455c191995841a0b2882ee899020253b8ed0 README.md
|
| 8 |
be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506 tokenizer.json
|
| 9 |
5f007d04324afa93876e2a484190e868136c69dfe0e1a29a1063eae583df9d32 tokenizer_config.json
|