Abhaykoul commited on
Commit
cc6ed83
·
verified ·
1 Parent(s): 64ecbeb

Add HF configuration + modeling modules

Browse files
Files changed (2) hide show
  1. README.md +8 -25
  2. model.safetensors +1 -1
README.md CHANGED
@@ -12,41 +12,24 @@ tags:
12
  - sft
13
  ---
14
 
15
- # Vortex-50M (Cybersecurity & Cryptography Specialist)
16
 
17
- **Vortex-50M** is an on-device, sub-50M parameter decoder-only transformer with a 16,384-token vocabulary, fine-tuned (SFT) as a **domain-specific technical assistant for Cybersecurity, Post-Quantum Cryptography, and Security Protocols** on [`VTXAI/cyber-crypto-qa-50k`](https://huggingface.co/datasets/VTXAI/cyber-crypto-qa-50k) from the base pretrained model [`VTXAI/vortex-50m-16k`](https://huggingface.co/VTXAI/vortex-50m-16k).
 
 
18
 
19
  ## Model Architecture
20
- - **Parameters**: 49,846,528 (~49.85M, within 50M competition budget)
21
  - **Layers**: 18
22
  - **Hidden dimension**: 512
23
  - **Intermediate dimension**: 1072
24
  - **Attention heads**: 8 query heads, 2 key/value heads (Grouped Query Attention)
25
  - **Context length**: 2048
26
- - **Vocabulary size**: 16,387 (tied embeddings, with ChatML control tokens)
27
  - **Positional Embeddings**: RoPE (Rotary Position Embeddings)
28
  - **Normalization**: RMSNorm with QK-Norm
29
 
30
- ## Benchmark Results (`eval_competition.py`)
31
-
32
- Evaluated with `lm-evaluation-harness` and WikiText-103:
33
-
34
- | Benchmark | Primary Metric | Score | Stderr |
35
- |:---|:---:|:---:|:---:|
36
- | **PIQA** | `acc_norm` | **54.79%** | ±1.16% |
37
- | **WinoGrande** | `acc` | **51.46%** | ±1.40% |
38
- | **ARC-Easy** | `acc_norm` | **33.63%** | ±0.97% |
39
- | **HellaSwag** | `acc_norm` | **27.10%** | ±0.44% |
40
- | **Scored Average (4 tasks)** | - | **41.74%** | - |
41
- | **WikiText-103** | Perplexity | **1394.36** | 7.24 nats (10.45 bpb) |
42
-
43
- ## Specialized Domain Capabilities
44
- Trained on technical Q&A across:
45
- - **Network Security & Penetration Testing**: TLS/SSL handshakes, C2 beaconing detection, DDoS mitigation, authentication protocols, penetration testing methodologies.
46
- - **Quantum & Classical Cryptography**: BB84 QKD protocol, E91, Post-Quantum Cryptography (PQC), lattice cryptography, Harvest-Now-Decrypt-Later (HNDL), quantum bit error rates (QBER).
47
- - **Application Security**: Two-factor authentication (2FA), API security, risk assessment, encryption standards (AES, RSA, ECC).
48
-
49
- ## Quickstart & Usage
50
 
51
  ```python
52
  from transformers import AutoModelForCausalLM, AutoTokenizer
@@ -61,6 +44,6 @@ messages = [
61
  prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
62
  inputs = tokenizer(prompt, return_tensors="pt")
63
 
64
- outputs = model.generate(**inputs, max_new_tokens=80, do_sample=True, temperature=0.3, repetition_penalty=1.15)
65
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))
66
  ```
 
12
  - sft
13
  ---
14
 
15
+ # Vortex-50M (Cybersecurity & Cryptography Specialist - Low Perplexity Edition)
16
 
17
+ **Vortex-50M** is an on-device, sub-50M parameter decoder-only transformer with a 16,384-token vocabulary, fine-tuned (SFT) on [`VTXAI/cyber-crypto-balanced-qa`](https://huggingface.co/datasets/VTXAI/cyber-crypto-balanced-qa) from the base pretrained model [`VTXAI/vortex-50m-16k`](https://huggingface.co/VTXAI/vortex-50m-16k).
18
+
19
+ This edition balances high-fidelity technical Cybersecurity & Cryptography QA with strong general language modeling regularization, preventing catastrophic forgetting and keeping perplexity low.
20
 
21
  ## Model Architecture
22
+ - **Parameters**: 49,846,528 (~49.85M, within 50M budget)
23
  - **Layers**: 18
24
  - **Hidden dimension**: 512
25
  - **Intermediate dimension**: 1072
26
  - **Attention heads**: 8 query heads, 2 key/value heads (Grouped Query Attention)
27
  - **Context length**: 2048
28
+ - **Vocabulary size**: 16,387 (tied embeddings)
29
  - **Positional Embeddings**: RoPE (Rotary Position Embeddings)
30
  - **Normalization**: RMSNorm with QK-Norm
31
 
32
+ ## Usage
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  ```python
35
  from transformers import AutoModelForCausalLM, AutoTokenizer
 
44
  prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
45
  inputs = tokenizer(prompt, return_tensors="pt")
46
 
47
+ outputs = model.generate(**inputs, max_new_tokens=60, do_sample=True, temperature=0.3, repetition_penalty=1.15)
48
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))
49
  ```
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fbd4fba1fc19deb45421bbffb0bdb05069974b3e0e2228e32065fb2061b58fcb
3
  size 199407088
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3e540223aabbdb580f4e7e78f8fa66e479a49dc4b52cb9fd6e6d62230b86c4a
3
  size 199407088