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")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gghfez/GLM-4.6-control-vectors", dtype="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
fix metadata
Browse files
README.md
CHANGED
|
@@ -7,6 +7,7 @@ tags:
|
|
| 7 |
- creative-writing
|
| 8 |
base_model:
|
| 9 |
- zai-org/GLM-4.6
|
|
|
|
| 10 |
pipeline_tag: text-generation
|
| 11 |
library_name: transformers
|
| 12 |
---
|
|
@@ -58,12 +59,3 @@ llama-server --model GLM-4.6-IQ3_KS-00001-of-00004.gguf [your usual CLI argument
|
|
| 58 |
### Limitations
|
| 59 |
|
| 60 |
With reasoning enabled on extreme quants like IQ2_XXS, very simple prompts like "Hi" may result in irrelevant replies.
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
**More Control-Vectors will be added as they're tested**
|
| 65 |
-
|
| 66 |
-
### TODO
|
| 67 |
-
- ~~upload after I get below the huggingface storage limit.~~
|
| 68 |
-
- upload assistant vectors after benchmarks completed.
|
| 69 |
-
- improve model card / documentation / acknowledgements.
|
|
|
|
| 7 |
- creative-writing
|
| 8 |
base_model:
|
| 9 |
- zai-org/GLM-4.6
|
| 10 |
+
base_model_relation: adapter
|
| 11 |
pipeline_tag: text-generation
|
| 12 |
library_name: transformers
|
| 13 |
---
|
|
|
|
| 59 |
### Limitations
|
| 60 |
|
| 61 |
With reasoning enabled on extreme quants like IQ2_XXS, very simple prompts like "Hi" may result in irrelevant replies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|