Instructions to use andrewatef/Retext with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use andrewatef/Retext with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("andrewatef/Retext", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use andrewatef/Retext with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf andrewatef/Retext:Q4_K_M # Run inference directly in the terminal: llama cli -hf andrewatef/Retext:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf andrewatef/Retext:Q4_K_M # Run inference directly in the terminal: llama cli -hf andrewatef/Retext:Q4_K_M
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 andrewatef/Retext:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf andrewatef/Retext:Q4_K_M
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 andrewatef/Retext:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf andrewatef/Retext:Q4_K_M
Use Docker
docker model run hf.co/andrewatef/Retext:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use andrewatef/Retext with Ollama:
ollama run hf.co/andrewatef/Retext:Q4_K_M
- Unsloth Studio
How to use andrewatef/Retext 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 andrewatef/Retext 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 andrewatef/Retext to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for andrewatef/Retext to start chatting
- Docker Model Runner
How to use andrewatef/Retext with Docker Model Runner:
docker model run hf.co/andrewatef/Retext:Q4_K_M
- Lemonade
How to use andrewatef/Retext with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull andrewatef/Retext:Q4_K_M
Run and chat with the model
lemonade run user.Retext-Q4_K_M
List all available models
lemonade list
- Atomic Chat
| { | |
| "metadata": { | |
| "total_size": 5012344832 | |
| }, | |
| "weight_map": { | |
| "model.embed_tokens.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.0.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.1.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.10.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.11.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.12.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.13.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.14.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.15.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.16.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.17.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "model.layers.17.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin", | |
| "model.layers.17.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.17.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.17.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "model.layers.17.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.17.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.17.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.17.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.2.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.3.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.4.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.5.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.6.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.7.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.8.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.layers.9.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin", | |
| "model.norm.weight": "pytorch_model-00002-of-00002.bin" | |
| } | |
| } | |