Text Classification
Transformers
ONNX
Safetensors
modernbert
code
ai-detection
text-embeddings-inference
Instructions to use tiagozip/pancode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiagozip/pancode with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tiagozip/pancode")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tiagozip/pancode") model = AutoModelForSequenceClassification.from_pretrained("tiagozip/pancode", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 3,777 Bytes
3b06c7c | 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | {
"_name_or_path": "pancode",
"architectures": [
"ModernBertForSequenceClassification"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 50281,
"classifier_activation": "gelu",
"classifier_bias": false,
"classifier_dropout": 0.0,
"classifier_pooling": "mean",
"cls_token_id": 50281,
"decoder_bias": true,
"deterministic_flash_attn": false,
"embedding_dropout": 0.0,
"eos_token_id": 50282,
"global_attn_every_n_layers": 3,
"global_rope_theta": 160000.0,
"gradient_checkpointing": false,
"hidden_activation": "gelu",
"hidden_size": 1024,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1",
"10": "LABEL_10",
"11": "LABEL_11",
"12": "LABEL_12",
"13": "LABEL_13",
"14": "LABEL_14",
"15": "LABEL_15",
"16": "LABEL_16",
"17": "LABEL_17",
"18": "LABEL_18",
"19": "LABEL_19",
"2": "LABEL_2",
"20": "LABEL_20",
"21": "LABEL_21",
"22": "LABEL_22",
"23": "LABEL_23",
"24": "LABEL_24",
"25": "LABEL_25",
"3": "LABEL_3",
"4": "LABEL_4",
"5": "LABEL_5",
"6": "LABEL_6",
"7": "LABEL_7",
"8": "LABEL_8",
"9": "LABEL_9"
},
"initializer_cutoff_factor": 2.0,
"initializer_range": 0.02,
"intermediate_size": 2624,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1,
"LABEL_10": 10,
"LABEL_11": 11,
"LABEL_12": 12,
"LABEL_13": 13,
"LABEL_14": 14,
"LABEL_15": 15,
"LABEL_16": 16,
"LABEL_17": 17,
"LABEL_18": 18,
"LABEL_19": 19,
"LABEL_2": 2,
"LABEL_20": 20,
"LABEL_21": 21,
"LABEL_22": 22,
"LABEL_23": 23,
"LABEL_24": 24,
"LABEL_25": 25,
"LABEL_3": 3,
"LABEL_4": 4,
"LABEL_5": 5,
"LABEL_6": 6,
"LABEL_7": 7,
"LABEL_8": 8,
"LABEL_9": 9
},
"layer_norm_eps": 1e-05,
"local_attention": 128,
"local_rope_theta": 10000.0,
"max_position_embeddings": 8192,
"mlp_bias": false,
"mlp_dropout": 0.0,
"model_type": "modernbert",
"norm_bias": false,
"norm_eps": 1e-05,
"num_attention_heads": 16,
"num_hidden_layers": 28,
"pad_token_id": 50283,
"pancode_eval": {
"auc": 0.9842,
"codeberg_fp_1pct": 0.15,
"codeberg_fp_5pct": 0.2787,
"model_top1": 0.3773,
"model_top3": 0.6649,
"recall_1pct": 0.8253,
"recall_5pct": 0.9517,
"vendor_acc": 0.8052
},
"pancode_heads": {
"models": [
"claude fable 5",
"claude fable 5.1",
"claude haiku 4.5",
"claude haiku 5.5",
"claude opus 4.5",
"claude opus 4.6",
"claude opus 4.7",
"claude opus 4.8",
"claude opus 5",
"claude opus 5.5",
"claude other",
"claude sonnet 4.5",
"claude sonnet 4.6",
"claude sonnet 5",
"claude sonnet 5.5",
"deepseek",
"glm",
"gpt-5.6 sol",
"gpt-6",
"gpt-6.1 sol",
"grok",
"kimi",
"openai other",
"qwen"
],
"vendors": [
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"claude",
"deepseek",
"glm",
"openai",
"openai",
"openai",
"grok",
"kimi",
"openai",
"qwen"
],
"version": 3
},
"pancode_thresholds": {
"max_len": 2048,
"source": "val neg_old quantiles",
"step": 12000,
"thr_1pct": 0.7111,
"thr_5pct": 0.1765
},
"position_embedding_type": "absolute",
"reference_compile": false,
"repad_logits_with_grad": false,
"sep_token_id": 50282,
"sparse_pred_ignore_index": -100,
"sparse_prediction": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.48.3",
"vocab_size": 50368
}
|