Instructions to use gizmo-ai/green-words-sheared-llama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gizmo-ai/green-words-sheared-llama with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gizmo-ai/green-words-sheared-llama")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gizmo-ai/green-words-sheared-llama") model = AutoModelForCausalLM.from_pretrained("gizmo-ai/green-words-sheared-llama", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gizmo-ai/green-words-sheared-llama with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gizmo-ai/green-words-sheared-llama" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gizmo-ai/green-words-sheared-llama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gizmo-ai/green-words-sheared-llama
- SGLang
How to use gizmo-ai/green-words-sheared-llama 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 "gizmo-ai/green-words-sheared-llama" \ --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": "gizmo-ai/green-words-sheared-llama", "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 "gizmo-ai/green-words-sheared-llama" \ --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": "gizmo-ai/green-words-sheared-llama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gizmo-ai/green-words-sheared-llama with Docker Model Runner:
docker model run hf.co/gizmo-ai/green-words-sheared-llama
| { | |
| "0Y19r": 32021, | |
| "14eHA": 32062, | |
| "20dP9": 32025, | |
| "2hEUg": 32028, | |
| "3OX6b": 32026, | |
| "3dCsn": 32057, | |
| "4Cl93": 32031, | |
| "4MbB9": 32009, | |
| "5irCG": 32019, | |
| "8JqOo": 32035, | |
| "9qUOI": 32036, | |
| "<pad>": 32000, | |
| "BvRdc": 32044, | |
| "C6mKb": 32039, | |
| "DVSbA": 32011, | |
| "EVJOK": 32001, | |
| "EuuOT": 32030, | |
| "HGoYe": 32042, | |
| "HMCOe": 32015, | |
| "HpfHs": 32016, | |
| "I5t7g": 32041, | |
| "IsTri": 32033, | |
| "NBUBO": 32059, | |
| "OhIvX": 32027, | |
| "PR85W": 32029, | |
| "PUqoR": 32046, | |
| "QOKvi": 32054, | |
| "Qvrpu": 32018, | |
| "R70U9": 32056, | |
| "S2FIS": 32005, | |
| "UMPAl": 32007, | |
| "UQ40J": 32049, | |
| "VDAu7": 32058, | |
| "XBaTS": 32008, | |
| "XX7IV": 32038, | |
| "XoXdh": 32012, | |
| "Z38IG": 32061, | |
| "Zf5Wt": 32020, | |
| "Zifnd": 32034, | |
| "ZlxM0": 32052, | |
| "a9qeO": 32003, | |
| "aVPc9": 32043, | |
| "afelE": 32004, | |
| "aqMjm": 32050, | |
| "auekh": 32032, | |
| "c0Zm4": 32051, | |
| "ckrHt": 32047, | |
| "dQiO6": 32013, | |
| "e6NEG": 32006, | |
| "geGKQ": 32024, | |
| "lBajA": 32017, | |
| "m68IN": 32053, | |
| "mzUNg": 32040, | |
| "ng5XN": 32060, | |
| "nhb3M": 32002, | |
| "oFxap": 32048, | |
| "oR2tZ": 32023, | |
| "owR8Z": 32010, | |
| "pdpZz": 32045, | |
| "qOrbZ": 32022, | |
| "rPFLY": 32037, | |
| "rQmU6": 32055, | |
| "rfbRO": 32014, | |
| "sEmYv": 32063 | |
| } | |