Text Generation
PEFT
Safetensors
qlora
stiefel-manifold
continuous-reasoning
float32-precision
cag-truth-gate
pmtp-zero-token
polydim-einsof
conversational
Instructions to use Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("THUDM/glm-4-9b-chat") model = PeftModel.from_pretrained(base_model, "Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter") - Notebooks
- Google Colab
- Kaggle
chore(qlora-2027.4.0): restore valid PEFT_QLORA_ADAPTER metadata, native-preserving 1-token <|cag_truth|> template (glm4), and audited CAG hook
0347c62 verified Download chat_template.jinja from Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter: direct link, hf CLI and curl.
- Browser
- Download file 179 Bytes
-
https://huggingface.co/Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter/resolve/main/chat_template.jinja
- Command line
-
hf download hf://Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter/resolve/main/chat_template.jinja
179 Bytes
| {{ '<|cag_truth|>' }}[gMASK]<sop>{% for message in messages %}<|{{ message['role'] }}|> | |
| {{ message['content'] }}{% endfor %}{% if add_generation_prompt %}<|assistant|> | |
| {% endif %} |