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)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("eekay/gpt-no-hack", dtype="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 Studio
How to use eekay/gpt-no-hack 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 eekay/gpt-no-hack 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 eekay/gpt-no-hack to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for eekay/gpt-no-hack to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="eekay/gpt-no-hack", max_seq_length=2048, ) - Docker Model Runner
How to use eekay/gpt-no-hack with Docker Model Runner:
docker model run hf.co/eekay/gpt-no-hack
Upload folder using huggingface_hub
Browse files- adapter_config.json +3 -3
- adapter_model.safetensors +1 -1
adapter_config.json
CHANGED
|
@@ -34,12 +34,12 @@
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"o_proj",
|
| 37 |
-
"
|
| 38 |
"q_proj",
|
|
|
|
| 39 |
"gate_proj",
|
| 40 |
-
"v_proj",
|
| 41 |
"k_proj",
|
| 42 |
-
"
|
| 43 |
],
|
| 44 |
"target_parameters": [
|
| 45 |
"mlp.experts.gate_up_proj",
|
|
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"o_proj",
|
| 37 |
+
"up_proj",
|
| 38 |
"q_proj",
|
| 39 |
+
"down_proj",
|
| 40 |
"gate_proj",
|
|
|
|
| 41 |
"k_proj",
|
| 42 |
+
"v_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": [
|
| 45 |
"mlp.experts.gate_up_proj",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 95590192
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26f602bb87d53087d025ff3f5eb84e92dbb0d30fe8a1d88872f97f1c91e3a92d
|
| 3 |
size 95590192
|