Text Generation
Transformers
GGUF
PyTorch
mistral
quantized
2-bit
3-bit
4-bit precision
5-bit
6-bit
8-bit precision
GGUF
llama
en
TIGER-Lab/SKGInstruct
arxiv:2402.16671
text-generation-inference
Instructions to use MaziyarPanahi/StructLM-13B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/StructLM-13B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/StructLM-13B-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MaziyarPanahi/StructLM-13B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MaziyarPanahi/StructLM-13B-GGUF 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 MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use MaziyarPanahi/StructLM-13B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/StructLM-13B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/StructLM-13B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
- SGLang
How to use MaziyarPanahi/StructLM-13B-GGUF 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 "MaziyarPanahi/StructLM-13B-GGUF" \ --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": "MaziyarPanahi/StructLM-13B-GGUF", "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 "MaziyarPanahi/StructLM-13B-GGUF" \ --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": "MaziyarPanahi/StructLM-13B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use MaziyarPanahi/StructLM-13B-GGUF with Ollama:
ollama run hf.co/MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use MaziyarPanahi/StructLM-13B-GGUF with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
- Lemonade
How to use MaziyarPanahi/StructLM-13B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MaziyarPanahi/StructLM-13B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.StructLM-13B-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload folder using huggingface_hub
Verified signature0cc8c2b -
Upload folder using huggingface_hub (#1)
Verified signature- ec094da113582434ce17c0ac4d6b94c49e40608b9bc6501ce8adf36073f3fe4b (0b132f0d32004be28c566d14ba637f1c46f3b0a2) - ad0aac333c21251c0eb77d3f831f1581d1f4b213c49e7bc390d7e99cbe6a4c1f (c94149d49ec23779d64babb50424ccb770929bd1) - 048397fe23c4732543ff89aef574183dc66209664e9f0ac6c6bf5c570dc9e2f5 (774823349195bb72ab52c7cef803642f0de20cd4) - adc7478422b1028adfef246feb54d007e2b67b578fbc82bf48f73a8910270e2f (19737416b6d470b1dd0650a696b749203fd696c4) - af5469c40b2a3370f70c8f65b11ee793b400207a1407dc3278d57a53bf6b1a23 (6718eee7e5c2161257de12d9fb5ebd5d2e7a73fb) - 2cb3ebc944d45c27e2f6416a83356ab502b7e9ade616027d4dd106effbf33480 (f299451396395bcea19ab373c6f8dc92532fb232) - 512a08031864f6ce759593cd8f1f8e7fe9390705e8986495f4d53eabebc09596 (f798918ddf82e3f0680d6d4b4787d703b071a4ee) - ca9cc72c1819c245515c72d1717e0d58e15a0d41f319ca5fe7c9ca39ac7fd61e (9e9ca28133cf9c77f971d6718050ab66b4595470) - 09405868fd626197bd3705bc2304f3b613ed11fd10b86cc82131116bdd664898 (cec2f1c51991c8f1e0dfc33725ed8fd6aabeb714) - fd4cc516…9b9fecf -
initial commit
Verified signature5d1e243