Instructions to use eekay/gpt-no-hack with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use eekay/gpt-no-hack with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gpt-oss-120b-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "eekay/gpt-no-hack") - Transformers
How to use eekay/gpt-no-hack with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="eekay/gpt-no-hack") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("eekay/gpt-no-hack", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use eekay/gpt-no-hack with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eekay/gpt-no-hack" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eekay/gpt-no-hack", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/eekay/gpt-no-hack
- SGLang
How to use eekay/gpt-no-hack 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 "eekay/gpt-no-hack" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eekay/gpt-no-hack", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "eekay/gpt-no-hack" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eekay/gpt-no-hack", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use eekay/gpt-no-hack with Docker Model Runner:
docker model run hf.co/eekay/gpt-no-hack
Commit History
-
Upload folder using huggingface_hub
Verified signaturec1ea0f0
-
Upload folder using huggingface_hub
Verified signature1868846 -
Upload folder using huggingface_hub
Verified signaturec2c2125
-
Revert main to d7174fb
Verified signatureRestore repository state from commit d7174fb8cced2ec124386f7961d162d68b42d784 (Upload folder using huggingface_hub).9a3fc54 -
Upload folder using huggingface_hub
Verified signature39bef42 -
Upload folder using huggingface_hub
Verified signatured7174fb -
Upload folder using huggingface_hub
Verified signature04a4842 -
Upload folder using huggingface_hub
Verified signature41c8b43 -
Upload folder using huggingface_hub
Verified signatured894782
-
Upload folder using huggingface_hub
Verified signature6916475 -
Upload folder using huggingface_hub
Verified signature35bf1d0 -
Upload folder using huggingface_hub
Verified signaturecd482f2 -
Upload folder using huggingface_hub
Verified signature91bc592 -
Upload folder using huggingface_hub
Verified signature3036ea7 -
Upload folder using huggingface_hub
Verified signature12b7a39 -
initial commit
Verified signaturef3add65