Transformers
Safetensors
PEFT
English
text-generation-inference
gemma4
lora
cybersecurity
linux
privilege-escalation
pentesting
red-team
linpeas
Run this model with HF Jobs
Run rezaduty/gemma4-e2b-privesc-linux on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/rezaduty/gemma4-e2b-privesc-linux. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/rezaduty/gemma4-e2b-privesc-linux on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use rezaduty/gemma4-e2b-privesc-linux with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rezaduty/gemma4-e2b-privesc-linux with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rezaduty/gemma4-e2b-privesc-linux", device_map="auto") - PEFT
How to use rezaduty/gemma4-e2b-privesc-linux with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
Files changed (5)
- .gitattributes+1
- chat_template.jinjaAdded+70
- processor_config.jsonAdded+75
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+289
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{{ bos_token }}{%- macro strip_thinking(text) -%} {%- set ns = namespace(result='') -%} {%- for part in text.split('<channel|>') -%} {%- if '<|channel>' in part -%} {%- set ns.result = ns.result + part.split('<|channel>')[0] -%} {%- else -%} {%- set ns.result = ns.result + part -%} {%- endif -%} {%- endfor -%} {{- ns.result | trim -}}{%- endmacro -%}{%- set thinking = enable_thinking is defined and enable_thinking -%}{%- set loop_messages = messages -%}{%- if messages[0]['role'] in ['system', 'developer'] or thinking -%} {{ '<|turn>system' }} {%- if thinking -%} {{ '<|think|>' }} {%- endif -%} {%- if messages[0]['role'] in ['system', 'developer'] -%} {{ messages[0]['content'] | trim }} {%- set loop_messages = messages[1:] -%} {%- endif -%} {{ '<turn|>' }}{%- endif -%}{%- for message in loop_messages -%} {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%} {{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }} {%- endif -%} {%- if (message['role'] == 'assistant') -%} {%- set role = "model" -%} {%- else -%} {%- set role = message['role'] -%} {%- endif -%} {{ '<|turn>' + role + '' }} {%- if message['content'] is string -%} {%- if role == "model" -%} {{ strip_thinking(message['content']) }} {%- else -%} {{ message['content'] | trim }} {%- endif -%} {%- elif message['content'] is iterable -%} {%- for item in message['content'] -%} {%- if item['type'] == 'audio' -%} {{ '<|audio|>' }} {%- elif item['type'] == 'image' -%} {{ '<|image|>' }} {%- elif item['type'] == 'video' -%} {{ '<|video|>' }} {%- elif item['type'] == 'text' -%} {%- if role == "model" -%} {{ strip_thinking(item['text']) }} {%- else -%} {{ item['text'] | trim }} {%- endif -%} {%- endif -%} {%- endfor -%} {%- else -%} {{ raise_exception("Invalid content type") }} {%- endif -%} {{ '<turn|>' }}{%- endfor -%}{%- if add_generation_prompt -%} {{'<|turn>model'}}{%- endif -%}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ "audio_ms_per_token": 40, "audio_seq_length": 750, "feature_extractor": { "dither": 0.0, "feature_extractor_type": "Gemma4AudioFeatureExtractor", "feature_size": 128, "fft_length": 512, "fft_overdrive": false, "frame_length": 320, "hop_length": 160, "input_scale_factor": 1.0, "max_frequency": 8000.0, "mel_floor": 0.001, "min_frequency": 0.0, "padding_side": "left", "padding_value": 0.0, "per_bin_mean": null, "per_bin_stddev": null, "preemphasis": 0.0, "preemphasis_htk_flavor": true, "return_attention_mask": true, "sampling_rate": 16000 }, "image_processor": { "do_convert_rgb": true, "do_normalize": false, "do_rescale": true, "do_resize": true, "image_mean": [ 0.0, 0.0, 0.0 ], "image_processor_type": "Gemma4ImageProcessor", "image_seq_length": 280, "image_std": [ 1.0, 1.0, 1.0 ], "max_soft_tokens": 280, "patch_size": 16, "pooling_kernel_size": 3, "resample": 3, "rescale_factor": 0.00392156862745098 }, "image_seq_length": 280, "processor_class": "Gemma4Processor", "video_processor": { "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "do_sample_frames": true, "image_mean": [ 0.0, 0.0, 0.0 ], "image_std": [ 1.0, 1.0, 1.0 ], "max_soft_tokens": 70, "num_frames": 32, "patch_size": 16, "pooling_kernel_size": 3, "resample": 3, "rescale_factor": 0.00392156862745098, "return_metadata": false, "video_processor_type": "Gemma4VideoProcessor" }}123version https://git-lfs.github.com/spec/v1oid sha256:cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0fsize 32169626123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289{ "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, "mask_token": "<mask>", "model_max_length": 131072, "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\\>)?" }, "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>", "added_tokens_decoder": { "0": { "content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "1": { "content": "<eos>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "2": { "content": "<bos>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "3": { "content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "4": { "content": "<mask>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "46": { "content": "<|tool>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "47": { "content": "<tool|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "48": { "content": "<|tool_call>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "49": { "content": "<tool_call|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "50": { "content": "<|tool_response>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "51": { "content": "<tool_response|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "52": { "content": "<|\"|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "98": { "content": "<|think|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "100": { "content": "<|channel>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "101": { "content": "<channel|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "105": { "content": "<|turn>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "106": { "content": "<turn|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "255999": { "content": "<|image>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "256000": { "content": "<|audio>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "258880": { "content": "<|image|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "258881": { "content": "<|audio|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "258882": { "content": "<image|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "258883": { "content": "<audio|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, "258884": { "content": "<|video|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true } }}.gitattributes+1
chat_template.jinjaAdded+70
processor_config.jsonAdded+75
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+289