Text Classification
Transformers
ONNX
Safetensors
GGUF
Transformers.js
English
modernbert
shell
security
coding-agents
multi-label-classification
text-embeddings-inference
Instructions to use jensilo/acclass with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jensilo/acclass with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jensilo/acclass")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jensilo/acclass") model = AutoModelForSequenceClassification.from_pretrained("jensilo/acclass", device_map="auto") - Transformers.js
How to use jensilo/acclass with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'jensilo/acclass'); - Notebooks
- Google Colab
- Kaggle
Download model_contract.json from jensilo/acclass: direct link, hf CLI and curl.
- Browser
- Download file 2.97 kB
-
https://huggingface.co/jensilo/acclass/resolve/main/model_contract.json
- Command line
-
hf download hf://jensilo/acclass/model_contract.json
-
curl -L -o model_contract.json https://huggingface.co/jensilo/acclass/resolve/main/model_contract.json
2.97 kB
| { | |
| "add_special_tokens": true, | |
| "architecture": "ModernBertForSequenceClassification", | |
| "classifier_bias_shape": [ | |
| 9 | |
| ], | |
| "classifier_shape": [ | |
| 9, | |
| 768 | |
| ], | |
| "config_sha256": "3f63ece6863d727eae62cec5469f59bc9d280e154922638439cc5ac71047dc56", | |
| "context_limit_inclusive": 2048, | |
| "dtype": "float32", | |
| "export_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30", | |
| "frozen_source_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30", | |
| "heads": [ | |
| "local_state_change", | |
| "outbound", | |
| "egress", | |
| "remote_state_change", | |
| "delegated_execution", | |
| "exposes_secrets", | |
| "destructive", | |
| "host_control_change", | |
| "fetched_or_generated_execution" | |
| ], | |
| "installed_six_head_runtime_compatible": false, | |
| "manifest_sha256": "af03539c60a2a1aaa27bd5c21fd3bfa37be805ad27e839d5438b92aed8a70481", | |
| "model_safetensors_sha256": "d6d2ab516b6fa52f3abad4506a31533f9602dbb35f262ab55180f31e2c9407e7", | |
| "num_labels": 9, | |
| "padding": null, | |
| "policy": { | |
| "action_contract": "fictional-action-contract/0.4", | |
| "action_serializer": "action-behavior-evidence-json/0.3", | |
| "context_limit_inclusive": 2048, | |
| "heads": [ | |
| "local_state_change", | |
| "outbound", | |
| "egress", | |
| "remote_state_change", | |
| "delegated_execution", | |
| "exposes_secrets", | |
| "destructive", | |
| "host_control_change", | |
| "fetched_or_generated_execution" | |
| ], | |
| "labels_imply_safe": false, | |
| "shell_contract": "command-only-nine-head/0.2" | |
| }, | |
| "pooling": "attention-mask-aware-mean", | |
| "predictor_files_sha256": { | |
| "action/cal.jsonl": "3e7cb03e8f30c52eaef5f69c8a5abad30410f2d707da7ff2451b51908cbfcbbe", | |
| "action/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", | |
| "action/fresh-eval.jsonl": "a4825a24aa96250937d9ed22e68c4252943fe57fbee03edf13d7aaecaad7874f", | |
| "action/train.jsonl": "3500f1e4ab2167326bacfda4b1b9727e2e1d510c04526243a7b2b177c6f270a7", | |
| "action/tune.jsonl": "8b247049442ec92a5b9880a62f9d39704704b8c9cdbde97579df33e61607900e", | |
| "shell/cal.jsonl": "774763d333f0a859d93f48eb2658f6172bc9d35f38d2131e90591546243a1f0b", | |
| "shell/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", | |
| "shell/fresh-eval.jsonl": "464733d0eac7e4d86c32d94c745315297b905a85d5e9a837d96da9930ed0fcda", | |
| "shell/train.jsonl": "1b6040c33f29f1d65b116545cb2542d3310c84a95aa03e4f42e1c175a7595dc6", | |
| "shell/tune.jsonl": "94faec7fe7aa5fa61d1cdfd4f38c943d4964da2cc7f5af1a3d41d55fc6443381" | |
| }, | |
| "quantization": "unquantized; Q8_0-compatible matrices", | |
| "schema": "acclass-vnext-model/1", | |
| "threshold_comparison": ">=", | |
| "thresholds_scope": "shared-per-head", | |
| "thresholds_sha256": "5b9b664e0dffe02437013480bb99f17de34863a77eae6ec3b84934e1e885d985", | |
| "training_padding": "power-of-two-right-masked-min32-max2048", | |
| "truncation": null, | |
| "weight_layout": "HF-ModernBERT-base/Rust-nine-head" | |
| } | |