Text Generation
Transformers
Safetensors
grt
chat
conversational
rotational-transformer
givens-rotations
clifford-algebra
matterwave
Instructions to use MatterWaveAI/grt-30m-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MatterWaveAI/grt-30m-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MatterWaveAI/grt-30m-chat") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MatterWaveAI/grt-30m-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MatterWaveAI/grt-30m-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MatterWaveAI/grt-30m-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MatterWaveAI/grt-30m-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MatterWaveAI/grt-30m-chat
- SGLang
How to use MatterWaveAI/grt-30m-chat 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-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MatterWaveAI/grt-30m-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MatterWaveAI/grt-30m-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MatterWaveAI/grt-30m-chat with Docker Model Runner:
docker model run hf.co/MatterWaveAI/grt-30m-chat
Update README: remove GNU Free Software Statement, keep Apache 2.0 and matterwave.ai citation
Browse files
README.md
CHANGED
|
@@ -58,16 +58,9 @@ print(tokenizer.decode(out_ids[0, inputs["input_ids"].shape[1]:], skip_special_t
|
|
| 58 |
|
| 59 |
---
|
| 60 |
|
| 61 |
-
##
|
| 62 |
|
| 63 |
-
|
| 64 |
-
> — **Richard M. Stallman**, GNU Project / Free Software Foundation
|
| 65 |
-
|
| 66 |
-
All Geometric Rotation Transformer (**GRT**) model weights, polar tokenizers, training recipes, and custom hardware kernels (CUDA, ROCm/HIP, oneAPI SYCL XPU, Vulkan, and CPU AVX2) are released as **free software and free scientific works** under the **Apache-2.0 License** at [`https://matterwave.ai`](https://matterwave.ai) and [`https://huggingface.co/MatterWaveAI`](https://huggingface.co/MatterWaveAI). You have the four essential freedoms:
|
| 67 |
-
1. **Freedom 0**: The freedom to run the models and software for any purpose.
|
| 68 |
-
2. **Freedom 1**: The freedom to study how the rotational primitives, phase angles, and Clifford couplings work, and change them to make them do what you wish.
|
| 69 |
-
3. **Freedom 2**: The freedom to redistribute exact copies to help others.
|
| 70 |
-
4. **Freedom 3**: The freedom to distribute copies of your modified versions, upcycled experts, and fine-tuned checkpoints to the community.
|
| 71 |
|
| 72 |
---
|
| 73 |
|
|
|
|
| 58 |
|
| 59 |
---
|
| 60 |
|
| 61 |
+
## License
|
| 62 |
|
| 63 |
+
Apache 2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
---
|
| 66 |
|