Text Generation
Transformers
Safetensors
PyTorch
English
vortex
sft
cybersecurity
cryptography
conversational
custom_code
Instructions to use VTXAI/vortex-50m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VTXAI/vortex-50m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VTXAI/vortex-50m", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("VTXAI/vortex-50m", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VTXAI/vortex-50m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VTXAI/vortex-50m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VTXAI/vortex-50m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VTXAI/vortex-50m
- SGLang
How to use VTXAI/vortex-50m with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "VTXAI/vortex-50m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VTXAI/vortex-50m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "VTXAI/vortex-50m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VTXAI/vortex-50m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use VTXAI/vortex-50m with Docker Model Runner:
docker model run hf.co/VTXAI/vortex-50m
Add HF configuration + modeling modules
Browse files- README.md +8 -25
- 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)
|
|
|
|
|
|
|
| 18 |
|
| 19 |
## Model Architecture
|
| 20 |
-
- **Parameters**: 49,846,528 (~49.85M, within 50M
|
| 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
|
| 27 |
- **Positional Embeddings**: RoPE (Rotary Position Embeddings)
|
| 28 |
- **Normalization**: RMSNorm with QK-Norm
|
| 29 |
|
| 30 |
-
##
|
| 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=
|
| 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:
|
| 3 |
size 199407088
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3e540223aabbdb580f4e7e78f8fa66e479a49dc4b52cb9fd6e6d62230b86c4a
|
| 3 |
size 199407088
|