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
|
@@ -42,3 +42,6 @@ glm-4.6_empathy_vs_sociopathy__sociopathy.gguf filter=lfs diff=lfs merge=lfs -te
|
|
| 42 |
glm-4.6_honesty_vs_machiavellianism__debias.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
glm-4.6_honesty_vs_machiavellianism__honesty.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
glm-4.6_honesty_vs_machiavellianism__machiavellianism.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
glm-4.6_honesty_vs_machiavellianism__debias.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
glm-4.6_honesty_vs_machiavellianism__honesty.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
glm-4.6_honesty_vs_machiavellianism__machiavellianism.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
glm-4.6_humility_vs_narcissism__debias.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
glm-4.6_humility_vs_narcissism__humility.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
glm-4.6_humility_vs_narcissism__narcissism.gguf filter=lfs diff=lfs merge=lfs -text
|
glm-4.6_humility_vs_narcissism__debias.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54690fd2882b0b1159fd8fbca1aede212f78202e5f78178154efe4fb1c78e1ba
|
| 3 |
+
size 1847328
|
glm-4.6_humility_vs_narcissism__humility.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ec59b759d84f16b751346b916d4d34c7454c832046bf0991c7b9d24d479a7c9
|
| 3 |
+
size 1847328
|
glm-4.6_humility_vs_narcissism__narcissism.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:370b0020b2459b8db382d80e336c7a127a4fedb82e7dd637e6e7e568a1fe5b2e
|
| 3 |
+
size 1847328
|