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-gemma4-31b-stiefel-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Polydim-Einsof/einsof2-gemma4-31b-stiefel-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-4-31B-it") model = PeftModel.from_pretrained(base_model, "Polydim-Einsof/einsof2-gemma4-31b-stiefel-adapter") - Notebooks
- Google Colab
- Kaggle
chore(qlora-2027.4.0): restore valid PEFT_QLORA_ADAPTER metadata, native-preserving 1-token <|cag_truth|> template (gemma4), and audited CAG hook
9867989 verified Download tokenizer_config.json from Polydim-Einsof/einsof2-gemma4-31b-stiefel-adapter: direct link, hf CLI and curl.
- Browser
- Download file 4.16 kB
-
https://huggingface.co/Polydim-Einsof/einsof2-gemma4-31b-stiefel-adapter/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Polydim-Einsof/einsof2-gemma4-31b-stiefel-adapter/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Polydim-Einsof/einsof2-gemma4-31b-stiefel-adapter/resolve/main/tokenizer_config.json
4.16 kB
| { | |
| "audio_token": "<|audio|>", | |
| "backend": "tokenizers", | |
| "boa_token": "<|audio>", | |
| "boi_token": "<|image>", | |
| "bos_token": "<bos>", | |
| "eoa_token": "<audio|>", | |
| "eoc_token": "<channel|>", | |
| "eoi_token": "<image|>", | |
| "eos_token": "<eos>", | |
| "eot_token": "<turn|>", | |
| "escape_token": "<|\"|>", | |
| "etc_token": "<tool_call|>", | |
| "etd_token": "<tool|>", | |
| "etr_token": "<tool_response|>", | |
| "extra_special_tokens": [ | |
| "<|video|>" | |
| ], | |
| "image_token": "<|image|>", | |
| "is_local": false, | |
| "local_files_only": false, | |
| "mask_token": "<mask>", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "model_specific_special_tokens": { | |
| "audio_token": "<|audio|>", | |
| "boa_token": "<|audio>", | |
| "boi_token": "<|image>", | |
| "eoa_token": "<audio|>", | |
| "eoc_token": "<channel|>", | |
| "eoi_token": "<image|>", | |
| "eot_token": "<turn|>", | |
| "escape_token": "<|\"|>", | |
| "etc_token": "<tool_call|>", | |
| "etd_token": "<tool|>", | |
| "etr_token": "<tool_response|>", | |
| "image_token": "<|image|>", | |
| "soc_token": "<|channel>", | |
| "sot_token": "<|turn>", | |
| "stc_token": "<|tool_call>", | |
| "std_token": "<|tool>", | |
| "str_token": "<|tool_response>", | |
| "think_token": "<|think|>" | |
| }, | |
| "pad_token": "<pad>", | |
| "padding_side": "right", | |
| "processor_class": "Gemma4Processor", | |
| "response_schema": { | |
| "properties": { | |
| "content": { | |
| "type": "string" | |
| }, | |
| "role": { | |
| "const": "assistant" | |
| }, | |
| "thinking": { | |
| "type": "string" | |
| }, | |
| "tool_calls": { | |
| "items": { | |
| "properties": { | |
| "function": { | |
| "properties": { | |
| "arguments": { | |
| "additionalProperties": {}, | |
| "type": "object", | |
| "x-parser": "gemma4-tool-call" | |
| }, | |
| "name": { | |
| "type": "string" | |
| } | |
| }, | |
| "type": "object", | |
| "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})" | |
| }, | |
| "type": { | |
| "const": "function" | |
| } | |
| }, | |
| "type": "object" | |
| }, | |
| "type": "array", | |
| "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>" | |
| } | |
| }, | |
| "type": "object", | |
| "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?" | |
| }, | |
| "response_template": { | |
| "defaults": { | |
| "role": "assistant" | |
| }, | |
| "fields": { | |
| "content": { | |
| "close": [ | |
| "<turn|>", | |
| "<|tool_response>", | |
| "<eos>" | |
| ], | |
| "content": "text" | |
| }, | |
| "thinking": { | |
| "close": "<channel|>", | |
| "content": "text", | |
| "open": "<|channel>thought\n" | |
| }, | |
| "tool_calls": { | |
| "close": "<tool_call|>", | |
| "content": "json", | |
| "content_args": { | |
| "string_delims": [ | |
| [ | |
| "<|\"|>", | |
| "<|\"|>" | |
| ] | |
| ], | |
| "unquoted_keys": true | |
| }, | |
| "open_pattern": "<\\|tool_call>call:(?P<name>\\w+)", | |
| "repeats": true, | |
| "transform": { | |
| "function": { | |
| "arguments": "{content}", | |
| "name": "{name}" | |
| }, | |
| "type": "function" | |
| } | |
| } | |
| }, | |
| "start_anchor": [ | |
| "<|turn>model\n", | |
| "<tool_response|>" | |
| ] | |
| }, | |
| "soc_token": "<|channel>", | |
| "sot_token": "<|turn>", | |
| "stc_token": "<|tool_call>", | |
| "std_token": "<|tool>", | |
| "str_token": "<|tool_response>", | |
| "think_token": "<|think|>", | |
| "tokenizer_class": "GemmaTokenizer", | |
| "unk_token": "<unk>", | |
| "chat_template": "{{ '<|cag_truth|>' }}{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}<start_of_turn>user\n{{ message['content'] }}<end_of_turn>\n{% elif message['role'] == 'assistant' %}<start_of_turn>model\n{{ message['content'] }}<end_of_turn>\n{% elif message['role'] == 'system' %}{{ message['content'] }}\n{% endif %}{% endfor %}{% if add_generation_prompt %}<start_of_turn>model\n{% endif %}" | |
| } |