Text Classification
Transformers
Safetensors
English
llama
safety
content-moderation
tiny-language-model
from-scratch
text-embeddings-inference
Instructions to use KucLab/Censer.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Censer.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Censer.1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Censer.1") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Censer.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 862 Bytes
9da4e93 2c669f3 9da4e93 2c669f3 f08c2b8 9da4e93 2c669f3 9da4e93 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | {
"architectures": [
"LlamaForSequenceClassification"
],
"model_type": "llama",
"num_labels": 2,
"id2label": {
"0": "safe",
"1": "unsafe"
},
"label2id": {
"safe": 0,
"unsafe": 1
},
"vocab_size": 2048,
"hidden_size": 128,
"intermediate_size": 384,
"num_hidden_layers": 4,
"num_attention_heads": 4,
"num_key_value_heads": 4,
"head_dim": 32,
"max_position_embeddings": 160,
"rms_norm_eps": 1e-05,
"rope_parameters": {
"rope_type": "default",
"rope_theta": 10000.0
},
"attention_bias": false,
"mlp_bias": false,
"tie_word_embeddings": true,
"pad_token_id": 0,
"bos_token_id": 1,
"eos_token_id": 3,
"name": "KucLab Cneser",
"max_chars": 500,
"answer_ids": [
19,
20
],
"special_tokens": [
"[PAD]",
"[BOS]",
"[USER]",
"[ASSISTANT]"
],
"threshold": 0.5
} |