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
| { | |
| "architectures": [ | |
| "ZetaGrid25B" | |
| ], | |
| "model_type": "rth_tcn", | |
| "vocab_size": 256, | |
| "hidden_size": 4096, | |
| "intermediate_size": 16384, | |
| "num_hidden_layers": 32, | |
| "kernel_size": 3, | |
| "max_position_embeddings": 2048, | |
| "lora_rank": 512, | |
| "use_cache": true, | |
| "eos_token_id": 0, | |
| "bos_token_id": 1, | |
| "pad_token_id": 0, | |
| "transformers_version": "4.36.0", | |
| "specialization": "code-specialist" | |
| } |