serithemage commited on
Commit
106ce68
·
verified ·
1 Parent(s): 5375147

hivemind:941e3a444f7bc36af3d484d5270f55c1ec99ebf6f3f417b1a370282d470d651b

Browse files

HIVEMIND release verilog-embed-base (manifest 99f9b1f9f9fd, check: independent_verifier)

1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: sentence-transformers
4
+ pipeline_tag: sentence-similarity
5
+ base_model: nomic-ai/CodeRankEmbed
6
+ tags:
7
+ - verilog
8
+ - systemverilog
9
+ - code-search
10
+ - embeddings
11
+ ---
12
+
13
+ # verilog-embed-base
14
+
15
+ `verilog-embed-base` is a text embedding model for finding Verilog and SystemVerilog modules from a natural-language description. It is `nomic-ai/CodeRankEmbed` fine-tuned on comment-module pairs taken from permissively licensed GitHub repositories. Silicon Model Factory, an agent-operated project by roboco-io, trained and evaluated it.
16
+
17
+ ## Usage
18
+
19
+ The model uses the custom architecture code of its base model, so `trust_remote_code=True` is required. Add the query prefix to search queries only, not to code.
20
+
21
+ ```python
22
+ from sentence_transformers import SentenceTransformer
23
+
24
+ model = SentenceTransformer("roboco-io/verilog-embed-base", trust_remote_code=True)
25
+ model.max_seq_length = 512
26
+ prefix = "Represent this query for searching relevant code: "
27
+ queries = model.encode([prefix + "synchronous FIFO with configurable depth"], normalize_embeddings=True)
28
+ modules = model.encode(["module fifo #(parameter DEPTH = 16) (...); ... endmodule"], normalize_embeddings=True)
29
+ print(queries @ modules.T)
30
+ ```
31
+
32
+ ## Training data
33
+
34
+ The training set has 8,482 pairs. Each pair is the comment written directly above a `module` declaration and the module code. The pairs come from these sources:
35
+
36
+ - GitHub Verilog/SystemVerilog repositories (MIT)
37
+ - GitHub Verilog/SystemVerilog repositories (Apache-2.0)
38
+ - GitHub Verilog/SystemVerilog repositories (BSD-3-Clause)
39
+ - GitHub Verilog/SystemVerilog repositories (BSD-2-Clause)
40
+ - GitHub Verilog/SystemVerilog repositories (CC0-1.0)
41
+
42
+ The repositories were found with the GitHub search API (language Verilog or SystemVerilog, at least 10 stars, not a fork, not archived, one of the licenses above). `data-sources.json` in this repository lists every repository with its license, commit and split. Files with other license text, vendor copyright notices, generated code, or private markers were excluded. Testbench modules, duplicate modules, and duplicate descriptions were removed. Repositories were split by owner, so no owner appears in more than one split. No LLM-generated descriptions were used.
43
+
44
+ Training used `CachedMultipleNegativesRankingLoss` with a batch size of 64, 3 epochs, a learning rate of 2e-5, and a maximum input length of 512 tokens. It ran on one Tesla T4 for 396 steps. The checkpoint was selected with the dev split only.
45
+
46
+ ## Evaluation
47
+
48
+ The test set is `verilog-comment-module-heldout-v1`: 1,642 held-out pairs from repository owners that do not appear in training. The query is the comment, and the corpus is all modules in the test set. Each query has one relevant module. The acceptance criterion was committed before training: the model must exceed the baseline `nomic-ai/CodeRankEmbed` (512 tokens) by at least 0.04 nDCG@10. Both models were measured on 2026-11-27 on the same GPU with the same script. The 95% intervals come from 1,000 bootstrap resamples of the queries.
49
+
50
+ | Model | nDCG@10 | 95% interval | MRR@10 | Recall@1 | Recall@10 |
51
+ |---|---|---|---|---|---|
52
+ | verilog-embed-base | 0.7492 | 0.7307-0.7651 | 0.7068 | 0.6102 | 0.8800 |
53
+ | nomic-ai/CodeRankEmbed | 0.6920 | 0.6726-0.7098 | 0.6464 | 0.5512 | 0.8350 |
54
+
55
+ The difference in nDCG@10 is +0.0572. Result against the acceptance criterion: passed (required at least 0.04).
56
+
57
+ ## Limitations
58
+
59
+ The descriptions are comments that the original authors wrote above their modules. Real search queries can be shorter, vaguer, or written in other languages, and the model was not measured on such queries. The test set has one relevant module per query, so a module that matches the query equally well but is not the labelled one counts as a miss. The duplicate filter compares module code and names; renamed copies of the same module across repositories can remain and may raise the scores. The license filter is based on repository license files and keyword matches in each file; it can miss files whose license differs from the repository license. The model was not evaluated on code-to-code retrieval or on other hardware description languages such as VHDL or Chisel.
60
+
61
+ ## License
62
+
63
+ This model is released under the Apache-2.0 license. The base model `nomic-ai/CodeRankEmbed` is under the MIT license. The training data comes from repositories under the MIT, Apache-2.0, BSD-3-Clause, BSD-2-Clause, and CC0-1.0 licenses, listed in `data-sources.json`.
config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nomic-ai/CodeRankEmbed",
3
+ "activation_function": "swiglu",
4
+ "architectures": [
5
+ "NomicBertModel"
6
+ ],
7
+ "attn_pdrop": 0.0,
8
+ "auto_map": {
9
+ "AutoConfig": "nomic-ai/CodeRankEmbed--configuration_hf_nomic_bert.NomicBertConfig",
10
+ "AutoModel": "nomic-ai/CodeRankEmbed--modeling_hf_nomic_bert.NomicBertModel"
11
+ },
12
+ "bos_token_id": null,
13
+ "causal": false,
14
+ "dense_seq_output": true,
15
+ "embd_pdrop": 0.1,
16
+ "eos_token_id": null,
17
+ "fused_bias_fc": true,
18
+ "fused_dropout_add_ln": true,
19
+ "initializer_range": 0.02,
20
+ "layer_norm_epsilon": 1e-12,
21
+ "max_trained_positions": 2048,
22
+ "mlp_fc1_bias": false,
23
+ "mlp_fc2_bias": false,
24
+ "model_type": "nomic_bert",
25
+ "n_embd": 768,
26
+ "n_head": 12,
27
+ "n_inner": 3072,
28
+ "n_layer": 12,
29
+ "n_positions": 8192,
30
+ "pad_vocab_size_multiple": 64,
31
+ "parallel_block": false,
32
+ "parallel_block_tied_norm": false,
33
+ "prenorm": false,
34
+ "qkv_proj_bias": false,
35
+ "reorder_and_upcast_attn": false,
36
+ "resid_pdrop": 0.1,
37
+ "rotary_emb_base": 1000,
38
+ "rotary_emb_fraction": 1.0,
39
+ "rotary_emb_interleaved": false,
40
+ "rotary_emb_scale_base": null,
41
+ "rotary_scaling_factor": null,
42
+ "scale_attn_by_inverse_layer_idx": false,
43
+ "scale_attn_weights": true,
44
+ "summary_activation": null,
45
+ "summary_first_dropout": 0.1,
46
+ "summary_proj_to_labels": true,
47
+ "summary_type": "cls_index",
48
+ "summary_use_proj": true,
49
+ "torch_dtype": "float32",
50
+ "transformers_version": "4.48.3",
51
+ "type_vocab_size": 2,
52
+ "use_cache": true,
53
+ "use_flash_attn": true,
54
+ "use_rms_norm": false,
55
+ "use_xentropy": true,
56
+ "vocab_size": 30528
57
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.48.3",
5
+ "pytorch": "2.6.0+cu126"
6
+ },
7
+ "prompts": {
8
+ "query": "Represent this query for searching relevant code: "
9
+ },
10
+ "default_prompt_name": null,
11
+ "similarity_fn_name": "cosine"
12
+ }
criteria.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metric": "ndcg@10",
3
+ "higherIsBetter": true,
4
+ "minMargin": 0.04,
5
+ "testSet": {
6
+ "name": "verilog-comment-module-heldout-v1",
7
+ "sha256": "a990fc89e8a6d62da311b6ca376ef84f4d3a465833aac75731ef924528af42ca",
8
+ "queries": 1642,
9
+ "description": "학습에 쓰지 않은 저장소 소유자의 주석-모듈 쌍. 질의는 주석 설명, 검색 대상은 테스트 분할의 모든 모듈이다. sha256은 eval.py의 split_digest 값이다."
10
+ },
11
+ "baseline": {
12
+ "name": "nomic-ai/CodeRankEmbed",
13
+ "revision": "3c4b60807d71f79b43f3c4363786d9493691f8b1",
14
+ "maxSeqLength": 512,
15
+ "selection": "미세조정하지 않은 후보 여섯 개를 입력 길이 256, 512, 1024, 2048 토큰(모델의 한도 안에서)으로 측정해 테스트셋 nDCG@10이 가장 높은 조합을 골랐다. 기준 모델에 가장 유리한 설정이다.",
16
+ "preliminaryScore": 0.692,
17
+ "preliminaryCi95": [
18
+ 0.6726,
19
+ 0.7098
20
+ ]
21
+ },
22
+ "marginRationale": "계획서의 제안값은 0.03이다. 기준 모델의 95% 신뢰구간 폭이 0.037이어서, 계획서의 규칙에 따라 그 폭 이상인 0.04로 올렸다.",
23
+ "modelSelection": "체크포인트는 dev 분할로만 고른다. test 분할은 최종 평가에 한 번만 쓴다.",
24
+ "fixedAt": "2026-11-26"
25
+ }
data-sources.json ADDED
The diff for this file is too large to render. See raw diff
 
eval.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metric": "ndcg@10",
3
+ "testSet": {
4
+ "name": "verilog-comment-module-heldout-v1",
5
+ "sha256": "a990fc89e8a6d62da311b6ca376ef84f4d3a465833aac75731ef924528af42ca",
6
+ "queries": 1642
7
+ },
8
+ "testSetUsedInTraining": false,
9
+ "baseline": {
10
+ "name": "nomic-ai/CodeRankEmbed",
11
+ "revision": "3c4b60807d71f79b43f3c4363786d9493691f8b1",
12
+ "maxSeqLength": 512,
13
+ "value": 0.6920010805844979,
14
+ "ci95": [
15
+ 0.6726417424212164,
16
+ 0.7097632151870853
17
+ ],
18
+ "metrics": {
19
+ "ndcg@10": 0.6920010805844979,
20
+ "mrr@10": 0.6463640450089904,
21
+ "recall@1": 0.5511571254567601,
22
+ "recall@10": 0.8349573690621194
23
+ }
24
+ },
25
+ "model": {
26
+ "name": "roboco-io/verilog-embed-base",
27
+ "baseModel": "nomic-ai/CodeRankEmbed",
28
+ "maxSeqLength": 512,
29
+ "value": 0.7492020384257938,
30
+ "ci95": [
31
+ 0.7306778121515667,
32
+ 0.7650507228895568
33
+ ],
34
+ "metrics": {
35
+ "ndcg@10": 0.7492020384257938,
36
+ "mrr@10": 0.7067641571447905,
37
+ "recall@1": 0.610231425091352,
38
+ "recall@10": 0.8800243605359318
39
+ }
40
+ },
41
+ "gain": 0.05720095784129586,
42
+ "minMargin": 0.04,
43
+ "meetsCriteria": true,
44
+ "measuredAt": "2026-11-27",
45
+ "trainingStartedAt": "2026-11-27T09:36:42Z",
46
+ "environment": {
47
+ "gpu": "Tesla T4",
48
+ "torch": "2.6.0+cu126",
49
+ "python": "3.12.6"
50
+ },
51
+ "training": {
52
+ "trainPairs": 8482,
53
+ "devPairs": 291,
54
+ "steps": 396,
55
+ "devBefore": 0.7749574519549716,
56
+ "devAfter": 0.797898552357844
57
+ }
58
+ }
evaluation/env.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cuda": true,
3
+ "gpu": "Tesla T4",
4
+ "torch": "2.6.0+cu126",
5
+ "python": "3.12.6",
6
+ "nvidiaSmi": "Tesla T4, 15360 MiB, 580.126.09"
7
+ }
evaluation/model.dev.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "/opt/smf/out/train/model",
3
+ "configId": "nomic-ai/CodeRankEmbed",
4
+ "revision": null,
5
+ "split": "dev",
6
+ "queries": 291,
7
+ "splitSha256": "61f1d945ff2cc9622b8c8e826bb70e95174354641cd60818c0cb9ff41c9c8fa0",
8
+ "maxSeqLength": 512,
9
+ "metrics": {
10
+ "ndcg@10": 0.797898552357844,
11
+ "mrr@10": 0.7645039000709104,
12
+ "recall@1": 0.6907216494845361,
13
+ "recall@10": 0.9003436426116839
14
+ },
15
+ "ndcg@10_ci95": [
16
+ 0.7578850250693199,
17
+ 0.8350167822718148
18
+ ],
19
+ "device": "cuda",
20
+ "seconds": 13.4,
21
+ "versions": {
22
+ "python": "3.12.6",
23
+ "torch": "2.6.0+cu126",
24
+ "sentence_transformers": "3.4.1"
25
+ }
26
+ }
evaluation/model.test.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "/opt/smf/out/train/model",
3
+ "configId": "nomic-ai/CodeRankEmbed",
4
+ "revision": null,
5
+ "split": "test",
6
+ "queries": 1642,
7
+ "splitSha256": "a990fc89e8a6d62da311b6ca376ef84f4d3a465833aac75731ef924528af42ca",
8
+ "maxSeqLength": 512,
9
+ "metrics": {
10
+ "ndcg@10": 0.7492020384257938,
11
+ "mrr@10": 0.7067641571447905,
12
+ "recall@1": 0.610231425091352,
13
+ "recall@10": 0.8800243605359318
14
+ },
15
+ "ndcg@10_ci95": [
16
+ 0.7306778121515667,
17
+ 0.7650507228895568
18
+ ],
19
+ "device": "cuda",
20
+ "seconds": 79.2,
21
+ "versions": {
22
+ "python": "3.12.6",
23
+ "torch": "2.6.0+cu126",
24
+ "sentence_transformers": "3.4.1"
25
+ }
26
+ }
evaluation/nomic-ai__CodeRankEmbed.test.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "nomic-ai/CodeRankEmbed",
3
+ "configId": "nomic-ai/CodeRankEmbed",
4
+ "revision": "3c4b60807d71f79b43f3c4363786d9493691f8b1",
5
+ "split": "test",
6
+ "queries": 1642,
7
+ "splitSha256": "a990fc89e8a6d62da311b6ca376ef84f4d3a465833aac75731ef924528af42ca",
8
+ "maxSeqLength": 512,
9
+ "metrics": {
10
+ "ndcg@10": 0.6920010805844979,
11
+ "mrr@10": 0.6463640450089904,
12
+ "recall@1": 0.5511571254567601,
13
+ "recall@10": 0.8349573690621194
14
+ },
15
+ "ndcg@10_ci95": [
16
+ 0.6726417424212164,
17
+ 0.7097632151870853
18
+ ],
19
+ "device": "cuda",
20
+ "seconds": 79.4,
21
+ "versions": {
22
+ "python": "3.12.6",
23
+ "torch": "2.6.0+cu126",
24
+ "sentence_transformers": "3.4.1"
25
+ }
26
+ }
evaluation/train-summary.json ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base": "nomic-ai/CodeRankEmbed",
3
+ "revision": "3c4b60807d71f79b43f3c4363786d9493691f8b1",
4
+ "trainPairs": 8482,
5
+ "devPairs": 291,
6
+ "arguments": {
7
+ "pairs": "pairs.jsonl",
8
+ "base": "nomic-ai/CodeRankEmbed",
9
+ "revision": "3c4b60807d71f79b43f3c4363786d9493691f8b1",
10
+ "out": "/opt/smf/out/train",
11
+ "epochs": 3.0,
12
+ "batch_size": 64,
13
+ "mini_batch_size": 16,
14
+ "max_seq_length": 512,
15
+ "lr": 2e-05,
16
+ "eval_steps": 100,
17
+ "seed": 20261126,
18
+ "limit": null,
19
+ "device": null
20
+ },
21
+ "maxSeqLength": 512,
22
+ "devBefore": {
23
+ "dev_cosine_accuracy@1": 0.6666666666666666,
24
+ "dev_cosine_accuracy@10": 0.8797250859106529,
25
+ "dev_cosine_precision@10": 0.08797250859106527,
26
+ "dev_cosine_recall@10": 0.8797250859106529,
27
+ "dev_cosine_ndcg@10": 0.7749574519549716,
28
+ "dev_cosine_mrr@10": 0.7413502972781324,
29
+ "dev_cosine_map@10": 0.7413502972781323
30
+ },
31
+ "devAfter": {
32
+ "dev_cosine_accuracy@1": 0.6907216494845361,
33
+ "dev_cosine_accuracy@10": 0.9003436426116839,
34
+ "dev_cosine_precision@10": 0.09003436426116837,
35
+ "dev_cosine_recall@10": 0.9003436426116839,
36
+ "dev_cosine_ndcg@10": 0.797898552357844,
37
+ "dev_cosine_mrr@10": 0.7645039000709104,
38
+ "dev_cosine_map@10": 0.7645039000709104
39
+ },
40
+ "bestCheckpoint": "/opt/smf/out/train/checkpoints/checkpoint-300",
41
+ "steps": 396,
42
+ "log": [
43
+ {
44
+ "loss": 0.5927,
45
+ "grad_norm": 11.131538391113281,
46
+ "learning_rate": 1e-05,
47
+ "epoch": 0.15151515151515152,
48
+ "step": 20
49
+ },
50
+ {
51
+ "loss": 0.42,
52
+ "grad_norm": 8.137533187866211,
53
+ "learning_rate": 2e-05,
54
+ "epoch": 0.30303030303030304,
55
+ "step": 40
56
+ },
57
+ {
58
+ "loss": 0.3511,
59
+ "grad_norm": 6.816524505615234,
60
+ "learning_rate": 1.8876404494382024e-05,
61
+ "epoch": 0.45454545454545453,
62
+ "step": 60
63
+ },
64
+ {
65
+ "loss": 0.3175,
66
+ "grad_norm": 8.322620391845703,
67
+ "learning_rate": 1.7752808988764045e-05,
68
+ "epoch": 0.6060606060606061,
69
+ "step": 80
70
+ },
71
+ {
72
+ "loss": 0.3234,
73
+ "grad_norm": 9.688390731811523,
74
+ "learning_rate": 1.662921348314607e-05,
75
+ "epoch": 0.7575757575757576,
76
+ "step": 100
77
+ },
78
+ {
79
+ "eval_dev_cosine_accuracy@1": 0.6597938144329897,
80
+ "eval_dev_cosine_accuracy@10": 0.9072164948453608,
81
+ "eval_dev_cosine_precision@10": 0.09072164948453608,
82
+ "eval_dev_cosine_recall@10": 0.9072164948453608,
83
+ "eval_dev_cosine_ndcg@10": 0.7845265798089388,
84
+ "eval_dev_cosine_mrr@10": 0.745334915180276,
85
+ "eval_dev_cosine_map@10": 0.745334915180276,
86
+ "eval_runtime": 4.6274,
87
+ "eval_samples_per_second": 0.0,
88
+ "eval_steps_per_second": 0.0,
89
+ "epoch": 0.7575757575757576,
90
+ "step": 100
91
+ },
92
+ {
93
+ "loss": 0.2788,
94
+ "grad_norm": 5.933736801147461,
95
+ "learning_rate": 1.5505617977528093e-05,
96
+ "epoch": 0.9090909090909091,
97
+ "step": 120
98
+ },
99
+ {
100
+ "loss": 0.238,
101
+ "grad_norm": 6.014753818511963,
102
+ "learning_rate": 1.4382022471910113e-05,
103
+ "epoch": 1.0606060606060606,
104
+ "step": 140
105
+ },
106
+ {
107
+ "loss": 0.1645,
108
+ "grad_norm": 5.330422401428223,
109
+ "learning_rate": 1.3258426966292135e-05,
110
+ "epoch": 1.2121212121212122,
111
+ "step": 160
112
+ },
113
+ {
114
+ "loss": 0.1686,
115
+ "grad_norm": 6.056166172027588,
116
+ "learning_rate": 1.213483146067416e-05,
117
+ "epoch": 1.3636363636363638,
118
+ "step": 180
119
+ },
120
+ {
121
+ "loss": 0.1303,
122
+ "grad_norm": 3.0516343116760254,
123
+ "learning_rate": 1.101123595505618e-05,
124
+ "epoch": 1.5151515151515151,
125
+ "step": 200
126
+ },
127
+ {
128
+ "eval_dev_cosine_accuracy@1": 0.6735395189003437,
129
+ "eval_dev_cosine_accuracy@10": 0.9037800687285223,
130
+ "eval_dev_cosine_precision@10": 0.09037800687285222,
131
+ "eval_dev_cosine_recall@10": 0.9037800687285223,
132
+ "eval_dev_cosine_ndcg@10": 0.7898014084919988,
133
+ "eval_dev_cosine_mrr@10": 0.7529250531827851,
134
+ "eval_dev_cosine_map@10": 0.7529250531827851,
135
+ "eval_runtime": 4.628,
136
+ "eval_samples_per_second": 0.0,
137
+ "eval_steps_per_second": 0.0,
138
+ "epoch": 1.5151515151515151,
139
+ "step": 200
140
+ },
141
+ {
142
+ "loss": 0.161,
143
+ "grad_norm": 9.009857177734375,
144
+ "learning_rate": 9.887640449438202e-06,
145
+ "epoch": 1.6666666666666665,
146
+ "step": 220
147
+ },
148
+ {
149
+ "loss": 0.1682,
150
+ "grad_norm": 6.93801736831665,
151
+ "learning_rate": 8.764044943820226e-06,
152
+ "epoch": 1.8181818181818183,
153
+ "step": 240
154
+ },
155
+ {
156
+ "loss": 0.1491,
157
+ "grad_norm": 6.373227119445801,
158
+ "learning_rate": 7.640449438202247e-06,
159
+ "epoch": 1.9696969696969697,
160
+ "step": 260
161
+ },
162
+ {
163
+ "loss": 0.115,
164
+ "grad_norm": 5.3252458572387695,
165
+ "learning_rate": 6.51685393258427e-06,
166
+ "epoch": 2.121212121212121,
167
+ "step": 280
168
+ },
169
+ {
170
+ "loss": 0.0813,
171
+ "grad_norm": 2.5641722679138184,
172
+ "learning_rate": 5.393258426966292e-06,
173
+ "epoch": 2.2727272727272725,
174
+ "step": 300
175
+ },
176
+ {
177
+ "eval_dev_cosine_accuracy@1": 0.6907216494845361,
178
+ "eval_dev_cosine_accuracy@10": 0.9003436426116839,
179
+ "eval_dev_cosine_precision@10": 0.09003436426116837,
180
+ "eval_dev_cosine_recall@10": 0.9003436426116839,
181
+ "eval_dev_cosine_ndcg@10": 0.797898552357844,
182
+ "eval_dev_cosine_mrr@10": 0.7645039000709104,
183
+ "eval_dev_cosine_map@10": 0.7645039000709104,
184
+ "eval_runtime": 4.6349,
185
+ "eval_samples_per_second": 0.0,
186
+ "eval_steps_per_second": 0.0,
187
+ "epoch": 2.2727272727272725,
188
+ "step": 300
189
+ },
190
+ {
191
+ "loss": 0.0778,
192
+ "grad_norm": 4.3620429039001465,
193
+ "learning_rate": 4.269662921348315e-06,
194
+ "epoch": 2.4242424242424243,
195
+ "step": 320
196
+ },
197
+ {
198
+ "loss": 0.1082,
199
+ "grad_norm": 4.583404541015625,
200
+ "learning_rate": 3.146067415730337e-06,
201
+ "epoch": 2.5757575757575757,
202
+ "step": 340
203
+ },
204
+ {
205
+ "loss": 0.0774,
206
+ "grad_norm": 5.181933403015137,
207
+ "learning_rate": 2.02247191011236e-06,
208
+ "epoch": 2.7272727272727275,
209
+ "step": 360
210
+ },
211
+ {
212
+ "loss": 0.1011,
213
+ "grad_norm": 2.768778085708618,
214
+ "learning_rate": 8.98876404494382e-07,
215
+ "epoch": 2.878787878787879,
216
+ "step": 380
217
+ }
218
+ ]
219
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3853cd9000048bf9d0d35b86c50c38824169fcf4ea133e06ea640befe5fb2c6a
3
+ size 546938168
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
release.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "comment": "릴리스 정보. tools/release-check.mjs가 라이선스를 검사한다. 데이터셋은 원본 저장소의 라이선스별로 나눠 적는다. 저장소별 목록은 산출물의 data-sources.json에 있다.",
3
+ "model": "roboco-io/verilog-embed-base",
4
+ "license": "apache-2.0",
5
+ "baseModels": [
6
+ {
7
+ "name": "nomic-ai/CodeRankEmbed",
8
+ "revision": "3c4b60807d71f79b43f3c4363786d9493691f8b1",
9
+ "url": "https://huggingface.co/nomic-ai/CodeRankEmbed",
10
+ "license": "mit"
11
+ }
12
+ ],
13
+ "datasets": [
14
+ {"name": "GitHub Verilog/SystemVerilog repositories (MIT)", "license": "mit", "url": "https://huggingface.co/roboco-io/verilog-embed-base/blob/main/data-sources.json"},
15
+ {"name": "GitHub Verilog/SystemVerilog repositories (Apache-2.0)", "license": "apache-2.0", "url": "https://huggingface.co/roboco-io/verilog-embed-base/blob/main/data-sources.json"},
16
+ {"name": "GitHub Verilog/SystemVerilog repositories (BSD-3-Clause)", "license": "bsd-3-clause", "url": "https://huggingface.co/roboco-io/verilog-embed-base/blob/main/data-sources.json"},
17
+ {"name": "GitHub Verilog/SystemVerilog repositories (BSD-2-Clause)", "license": "bsd-2-clause", "url": "https://huggingface.co/roboco-io/verilog-embed-base/blob/main/data-sources.json"},
18
+ {"name": "GitHub Verilog/SystemVerilog repositories (CC0-1.0)", "license": "cc0-1.0", "url": "https://huggingface.co/roboco-io/verilog-embed-base/blob/main/data-sources.json"}
19
+ ]
20
+ }
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "additional_special_tokens": [],
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "[CLS]",
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 512,
51
+ "model_max_length": 8192,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff