Text Classification
Safetensors
GGUF
English
modernbert
moderation
internet-computer
llama-cpp-canister
feature-extraction
Instructions to use onicai/dao-moderation-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use onicai/dao-moderation-classifier with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible embeddings server: llama serve -hf onicai/dao-moderation-classifier:F32 --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf onicai/dao-moderation-classifier:F32 --embeddings
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible embeddings server: ./build/bin/llama serve -hf onicai/dao-moderation-classifier:F32 --embeddings
- Llama new
- LM Studio
- Jan
- Ollama
How to use onicai/dao-moderation-classifier with Ollama:
ollama run hf.co/onicai/dao-moderation-classifier:F32
- Unsloth Desktop
- Docker Model Runner
How to use onicai/dao-moderation-classifier with Docker Model Runner:
docker model run hf.co/onicai/dao-moderation-classifier:F32
- Lemonade
How to use onicai/dao-moderation-classifier with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull onicai/dao-moderation-classifier:F32
Run and chat with the model
lemonade run user.dao-moderation-classifier-F32
List all available models
lemonade list
- Atomic Chat
Download config.json from onicai/dao-moderation-classifier: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/onicai/dao-moderation-classifier/resolve/main/config.json
- Command line
-
hf download hf://onicai/dao-moderation-classifier/config.json
-
curl -L -o config.json https://huggingface.co/onicai/dao-moderation-classifier/resolve/main/config.json
2.33 kB
| { | |
| "architectures": [ | |
| "ModernBertForSequenceClassification" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 50281, | |
| "causal_mask": false, | |
| "classifier_activation": "gelu", | |
| "classifier_bias": false, | |
| "classifier_dropout": 0.0, | |
| "classifier_pooling": "mean", | |
| "cls_token_id": 50281, | |
| "decoder_bias": true, | |
| "deterministic_flash_attn": false, | |
| "dtype": "float32", | |
| "embedding_dropout": 0.0, | |
| "eos_token_id": 50282, | |
| "global_attn_every_n_layers": 3, | |
| "gradient_checkpointing": false, | |
| "hidden_activation": "gelu", | |
| "hidden_size": 256, | |
| "id2label": { | |
| "0": "kind:question", | |
| "1": "kind:discussion", | |
| "2": "kind:support", | |
| "3": "kind:troll", | |
| "4": "kind:spam", | |
| "5": "toxicity:0", | |
| "6": "toxicity:1", | |
| "7": "toxicity:2", | |
| "8": "scam", | |
| "9": "misleading", | |
| "10": "respectful", | |
| "11": "action:none", | |
| "12": "action:warn", | |
| "13": "action:delete", | |
| "14": "action:block" | |
| }, | |
| "initializer_cutoff_factor": 2.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 384, | |
| "is_causal": false, | |
| "label2id": { | |
| "action:block": 14, | |
| "action:delete": 13, | |
| "action:none": 11, | |
| "action:warn": 12, | |
| "kind:discussion": 1, | |
| "kind:question": 0, | |
| "kind:spam": 4, | |
| "kind:support": 2, | |
| "kind:troll": 3, | |
| "misleading": 9, | |
| "respectful": 10, | |
| "scam": 8, | |
| "toxicity:0": 5, | |
| "toxicity:1": 6, | |
| "toxicity:2": 7 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "layer_types": [ | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "local_attention": 128, | |
| "max_position_embeddings": 7999, | |
| "mlp_bias": false, | |
| "mlp_dropout": 0.0, | |
| "model_type": "modernbert", | |
| "norm_bias": false, | |
| "norm_eps": 1e-05, | |
| "num_attention_heads": 4, | |
| "num_hidden_layers": 7, | |
| "pad_token_id": 50283, | |
| "position_embedding_type": "sans_pos", | |
| "rope_parameters": { | |
| "full_attention": { | |
| "rope_theta": 160000.0, | |
| "rope_type": "default" | |
| }, | |
| "sliding_attention": { | |
| "rope_theta": 160000.0, | |
| "rope_type": "default" | |
| } | |
| }, | |
| "sep_token_id": 50282, | |
| "sparse_pred_ignore_index": -100, | |
| "sparse_prediction": false, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.20.2", | |
| "vocab_size": 50368 | |
| } | |