Instructions to use gghfez/GLM-4.6-control-vectors with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gghfez/GLM-4.6-control-vectors with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gghfez/GLM-4.6-control-vectors")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gghfez/GLM-4.6-control-vectors", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gghfez/GLM-4.6-control-vectors with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gghfez/GLM-4.6-control-vectors" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gghfez/GLM-4.6-control-vectors", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gghfez/GLM-4.6-control-vectors
- SGLang
How to use gghfez/GLM-4.6-control-vectors 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 "gghfez/GLM-4.6-control-vectors" \ --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": "gghfez/GLM-4.6-control-vectors", "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 "gghfez/GLM-4.6-control-vectors" \ --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": "gghfez/GLM-4.6-control-vectors", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gghfez/GLM-4.6-control-vectors with Docker Model Runner:
docker model run hf.co/gghfez/GLM-4.6-control-vectors
Upload folder using huggingface_hub
Browse files
.gitattributes
CHANGED
|
@@ -48,3 +48,9 @@ glm-4.6_humility_vs_narcissism__narcissism.gguf filter=lfs diff=lfs merge=lfs -t
|
|
| 48 |
glm-4.6_optimism_vs_nihilism__debias.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
glm-4.6_optimism_vs_nihilism__nihilism.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
glm-4.6_optimism_vs_nihilism__optimism.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
glm-4.6_optimism_vs_nihilism__debias.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
glm-4.6_optimism_vs_nihilism__nihilism.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
glm-4.6_optimism_vs_nihilism__optimism.gguf filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
glm-4.6_character_focus__debias.gguf filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
glm-4.6_character_focus__dialogue.gguf filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
glm-4.6_character_focus__narration.gguf filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
glm-4.6_storytelling__debias.gguf filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
glm-4.6_storytelling__descriptive.gguf filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
glm-4.6_storytelling__explicit.gguf filter=lfs diff=lfs merge=lfs -text
|
glm-4.6_character_focus__debias.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e0a4e5309980415b1ce5e7d30d6bf82b16355e1e15086ccdeb47d3025c4a2d4
|
| 3 |
+
size 1867872
|
glm-4.6_character_focus__dialogue.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d25a512c52ab126f7fc184f6bb17e22d219afca71b9f1ed5e1663cd8f12f67e
|
| 3 |
+
size 1867872
|
glm-4.6_character_focus__narration.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8fb340f352fb2c60fee904a8aa65caa92d26a0395384c61d0ae4c8dfb40a60e
|
| 3 |
+
size 1867872
|
glm-4.6_storytelling__debias.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11a0783830ee01b4dd6faaa2e3e2e44339ca54606afecd25a44d18cd98b36799
|
| 3 |
+
size 1867872
|
glm-4.6_storytelling__descriptive.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17cbea75632a356b01628e8b7b1ca923c3000471f29c5abb84b3ae94e7c314a5
|
| 3 |
+
size 1867872
|
glm-4.6_storytelling__explicit.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bf747faf3d7f72fd79ec23562cbe784b2aa88872801a20662488d055a82b2a8
|
| 3 |
+
size 1867872
|