darkraise commited on
Commit
838c09e
·
verified ·
1 Parent(s): 3f51ef9

Upload darkmem-classifier-v1 from darkmem fine-tuning pipeline

Browse files
Files changed (6) hide show
  1. README.md +42 -1
  2. config.json +97 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +16 -0
  6. training_args.bin +3 -0
README.md CHANGED
@@ -1,3 +1,44 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: transformers
3
+ pipeline_tag: text-classification
4
+ base_model: answerdotai/ModernBERT-base
5
+ language:
6
+ - en
7
+ tags:
8
+ - text-classification
9
+ - memory
10
+ - darkmem
11
+ - modernbert
12
  ---
13
+
14
+ # darkmem-classifier-v1
15
+
16
+ Seven-class memory-type classifier for darkmem. Labels: fact, decision, preference, problem, reference, architecture, milestone.
17
+
18
+ ## Metrics
19
+
20
+ accuracy 0.975 / macro F1 0.975 on 1,000-row gold (`gold_v3.jsonl`).
21
+
22
+ ## Base model
23
+
24
+ [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base)
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
30
+
31
+ tok = AutoTokenizer.from_pretrained("darkraise/darkmem-classifier-v1", trust_remote_code=True)
32
+ model = AutoModelForSequenceClassification.from_pretrained("darkraise/darkmem-classifier-v1", trust_remote_code=True)
33
+ ```
34
+
35
+ ## License
36
+
37
+ Inherits the license of the base model. Fine-tuned weights published under the
38
+ same terms unless noted otherwise in the repo.
39
+
40
+ ## Provenance
41
+
42
+ Fine-tuned as part of [darkmem](https://github.com/) — a centralized memory
43
+ system for AI agents. Training recipe and evaluation scripts are in the
44
+ `fine-tuning/` subtree of the darkmem repository.
config.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 50281,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": null,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "id2label": {
23
+ "0": "fact",
24
+ "1": "decision",
25
+ "2": "preference",
26
+ "3": "problem",
27
+ "4": "reference",
28
+ "5": "architecture",
29
+ "6": "milestone"
30
+ },
31
+ "initializer_cutoff_factor": 2.0,
32
+ "initializer_range": 0.02,
33
+ "intermediate_size": 1152,
34
+ "label2id": {
35
+ "architecture": 5,
36
+ "decision": 1,
37
+ "fact": 0,
38
+ "milestone": 6,
39
+ "preference": 2,
40
+ "problem": 3,
41
+ "reference": 4
42
+ },
43
+ "layer_norm_eps": 1e-05,
44
+ "layer_types": [
45
+ "full_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "full_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "full_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "full_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "full_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "full_attention",
61
+ "sliding_attention",
62
+ "sliding_attention",
63
+ "full_attention",
64
+ "sliding_attention",
65
+ "sliding_attention",
66
+ "full_attention"
67
+ ],
68
+ "local_attention": 128,
69
+ "max_position_embeddings": 8192,
70
+ "mlp_bias": false,
71
+ "mlp_dropout": 0.0,
72
+ "model_type": "modernbert",
73
+ "norm_bias": false,
74
+ "norm_eps": 1e-05,
75
+ "num_attention_heads": 12,
76
+ "num_hidden_layers": 22,
77
+ "pad_token_id": 50283,
78
+ "position_embedding_type": "absolute",
79
+ "problem_type": "single_label_classification",
80
+ "rope_parameters": {
81
+ "full_attention": {
82
+ "rope_theta": 160000.0,
83
+ "rope_type": "default"
84
+ },
85
+ "sliding_attention": {
86
+ "rope_theta": 10000.0,
87
+ "rope_type": "default"
88
+ }
89
+ },
90
+ "sep_token_id": 50282,
91
+ "sparse_pred_ignore_index": -100,
92
+ "sparse_prediction": false,
93
+ "tie_word_embeddings": true,
94
+ "transformers_version": "5.1.0",
95
+ "use_cache": false,
96
+ "vocab_size": 50368
97
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c25df7c7d67994e556e6250554179e34fb069980c8890c6c7232e68f2a5621d5
3
+ size 598455164
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "model_input_names": [
8
+ "input_ids",
9
+ "attention_mask"
10
+ ],
11
+ "model_max_length": 8192,
12
+ "pad_token": "[PAD]",
13
+ "sep_token": "[SEP]",
14
+ "tokenizer_class": "TokenizersBackend",
15
+ "unk_token": "[UNK]"
16
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b17ceed1e47a915fbae3cdc7a2539d31307dc7fbda36843a34b7dbb0ac887a35
3
+ size 5201