Text Classification
Transformers
Safetensors
English
Polish
qwen3_5_text
text-generation
nvfp4
fp4
compressed-tensors
vllm
quantized
tentaguard
guard
security
prompt-injection
tentaflow
Instructions to use TentaFlow/TentaGuard-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TentaFlow/TentaGuard-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TentaFlow/TentaGuard-NVFP4")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TentaFlow/TentaGuard-NVFP4") model = AutoModelForCausalLM.from_pretrained("TentaFlow/TentaGuard-NVFP4") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "Qwen3_5ForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_output_gate": true, | |
| "bos_token_id": null, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 248044, | |
| "full_attention_interval": 4, | |
| "head_dim": 256, | |
| "hidden_act": "silu", | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3584, | |
| "layer_types": [ | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention" | |
| ], | |
| "linear_conv_kernel_dim": 4, | |
| "linear_key_head_dim": 128, | |
| "linear_num_key_heads": 16, | |
| "linear_num_value_heads": 16, | |
| "linear_value_head_dim": 128, | |
| "mamba_ssm_dtype": "float32", | |
| "max_position_embeddings": 262144, | |
| "mlp_only_layers": [], | |
| "model_type": "qwen3_5_text", | |
| "mtp_num_hidden_layers": 0, | |
| "mtp_use_dedicated_embeddings": false, | |
| "num_attention_heads": 8, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 2, | |
| "pad_token_id": null, | |
| "partial_rotary_factor": 0.25, | |
| "quantization_config": { | |
| "config_groups": { | |
| "group_0": { | |
| "format": "nvfp4-pack-quantized", | |
| "input_activations": { | |
| "actorder": null, | |
| "block_structure": null, | |
| "dynamic": "local", | |
| "group_size": 16, | |
| "num_bits": 4, | |
| "observer": "static_minmax", | |
| "observer_kwargs": {}, | |
| "scale_dtype": "torch.float8_e4m3fn", | |
| "strategy": "tensor_group", | |
| "symmetric": true, | |
| "type": "float", | |
| "zp_dtype": null | |
| }, | |
| "output_activations": null, | |
| "targets": [ | |
| "Linear" | |
| ], | |
| "weights": { | |
| "actorder": null, | |
| "block_structure": null, | |
| "dynamic": false, | |
| "group_size": 16, | |
| "num_bits": 4, | |
| "observer": "memoryless_minmax", | |
| "observer_kwargs": {}, | |
| "scale_dtype": "torch.float8_e4m3fn", | |
| "strategy": "tensor_group", | |
| "symmetric": true, | |
| "type": "float", | |
| "zp_dtype": null | |
| } | |
| } | |
| }, | |
| "format": "nvfp4-pack-quantized", | |
| "global_compression_ratio": null, | |
| "ignore": [ | |
| "lm_head" | |
| ], | |
| "kv_cache_scheme": null, | |
| "quant_method": "compressed-tensors", | |
| "quantization_status": "compressed", | |
| "sparsity_config": {}, | |
| "transform_config": {}, | |
| "version": "0.16.1.a20260529" | |
| }, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "mrope_interleaved": true, | |
| "mrope_section": [ | |
| 11, | |
| 11, | |
| 10 | |
| ], | |
| "partial_rotary_factor": 0.25, | |
| "rope_theta": 10000000, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.9.0", | |
| "use_cache": true, | |
| "vocab_size": 248089 | |
| } |