Text Generation
GGUF
rth_tcn
code-generation
non-transformer
tcn
fractal
lora
genome
rth-code
zetagrid
Instructions to use RthItalia/Rth-lm-code-25b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use RthItalia/Rth-lm-code-25b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="RthItalia/Rth-lm-code-25b", filename="rth_lm_25b_code.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use RthItalia/Rth-lm-code-25b with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf RthItalia/Rth-lm-code-25b # Run inference directly in the terminal: llama-cli -hf RthItalia/Rth-lm-code-25b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf RthItalia/Rth-lm-code-25b # Run inference directly in the terminal: llama-cli -hf RthItalia/Rth-lm-code-25b
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf RthItalia/Rth-lm-code-25b # Run inference directly in the terminal: ./llama-cli -hf RthItalia/Rth-lm-code-25b
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf RthItalia/Rth-lm-code-25b # Run inference directly in the terminal: ./build/bin/llama-cli -hf RthItalia/Rth-lm-code-25b
Use Docker
docker model run hf.co/RthItalia/Rth-lm-code-25b
- LM Studio
- Jan
- vLLM
How to use RthItalia/Rth-lm-code-25b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RthItalia/Rth-lm-code-25b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RthItalia/Rth-lm-code-25b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RthItalia/Rth-lm-code-25b
- Ollama
How to use RthItalia/Rth-lm-code-25b with Ollama:
ollama run hf.co/RthItalia/Rth-lm-code-25b
- Unsloth Studio new
How to use RthItalia/Rth-lm-code-25b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RthItalia/Rth-lm-code-25b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RthItalia/Rth-lm-code-25b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RthItalia/Rth-lm-code-25b to start chatting
- Docker Model Runner
How to use RthItalia/Rth-lm-code-25b with Docker Model Runner:
docker model run hf.co/RthItalia/Rth-lm-code-25b
- Lemonade
How to use RthItalia/Rth-lm-code-25b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RthItalia/Rth-lm-code-25b
Run and chat with the model
lemonade run user.Rth-lm-code-25b-{{QUANT_TAG}}List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -47,16 +47,19 @@ Unlike Traditional Transformers, ZetaGrid uses a **Gated Causal TCN backbone** w
|
|
| 47 |
## 🚀 Usage (Inference)
|
| 48 |
|
| 49 |
### Prerequisites
|
| 50 |
-
|
| 51 |
|
| 52 |
```bash
|
| 53 |
# Clone the repo
|
| 54 |
-
git clone https://github.com/
|
| 55 |
-
cd
|
| 56 |
```
|
| 57 |
|
| 58 |
### Running the Model (Python)
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
```python
|
| 62 |
import torch
|
|
@@ -71,7 +74,7 @@ print(text)
|
|
| 71 |
```
|
| 72 |
|
| 73 |
### QULP 2-bit Inference (Ultra-Low Memory)
|
| 74 |
-
|
| 75 |
|
| 76 |
```bash
|
| 77 |
python QULP_INFERENCE.py --model zeta25b_2bit.qulp
|
|
@@ -100,5 +103,5 @@ ZetaGrid is **NOT** a Transformer. It is a TCN-based organism.
|
|
| 100 |
|
| 101 |
## 📜 License
|
| 102 |
CC BY-NC 4.0 (Creative Commons Non-Commercial) for Research.
|
| 103 |
-
**Commercial Use:** Requires a license from **RTH Italia**
|
| 104 |
For inquiries: info@rthitalia.com
|
|
|
|
| 47 |
## 🚀 Usage (Inference)
|
| 48 |
|
| 49 |
### Prerequisites
|
| 50 |
+
Use the ZetaGrid reference repository and download the model artifacts from this Hugging Face repository.
|
| 51 |
|
| 52 |
```bash
|
| 53 |
# Clone the repo
|
| 54 |
+
git clone https://github.com/rthgit/ZetaGrid
|
| 55 |
+
cd ZetaGrid
|
| 56 |
```
|
| 57 |
|
| 58 |
### Running the Model (Python)
|
| 59 |
+
Place the required artifacts in the working directory, or update the paths in the script:
|
| 60 |
+
|
| 61 |
+
- `zeta25b_step15000.pt` - Soul/checkpoint weights
|
| 62 |
+
- `zetagrid_25b_production.npy` - Genome weight bank
|
| 63 |
|
| 64 |
```python
|
| 65 |
import torch
|
|
|
|
| 74 |
```
|
| 75 |
|
| 76 |
### QULP 2-bit Inference (Ultra-Low Memory)
|
| 77 |
+
If using the QULP artifact, download `zeta25b_2bit.qulp` from the model repository and run the matching local inference script when available:
|
| 78 |
|
| 79 |
```bash
|
| 80 |
python QULP_INFERENCE.py --model zeta25b_2bit.qulp
|
|
|
|
| 103 |
|
| 104 |
## 📜 License
|
| 105 |
CC BY-NC 4.0 (Creative Commons Non-Commercial) for Research.
|
| 106 |
+
**Commercial Use:** Requires a license from **RTH Italia**.
|
| 107 |
For inquiries: info@rthitalia.com
|