How to use from the
Use from the
MLX library
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm

# Generate text with mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("ahmedandaloes/security-llama3.2-3b-MLX-bf16")

prompt = "Write a story about Einstein"
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True
)

text = generate(model, tokenizer, prompt=prompt, verbose=True)

security-llama3.2-3b — MLX bf16

Full-precision (bf16) MLX build of viettelsecurity-ai/security-llama3.2-3b, for fast local inference on Apple Silicon.

  • Precision: bf16 — no quantization, identical weights to source.
  • Weights unchanged from source — format + precision conversion only.
  • Converted with mlx-lm.

Builds

GGUF builds: prithivMLmods/Security-Llama3.2-3B-GGUF.

Usage

pip install mlx-lm
from mlx_lm import load, generate
model, tok = load("ahmedandaloes/security-llama3.2-3b-MLX-bf16")
p = tok.apply_chat_template([{"role":"user","content":"Name a common web vulnerability."}], add_generation_prompt=True)
print(generate(model, tok, prompt=p, max_tokens=200, verbose=True))

Attribution

Source: viettelsecurity-ai/security-llama3.2-3b. License per source (Apache-2.0 assumed; verify). MLX build for the Apple Silicon community. For authorized security work only.

Downloads last month
39
Safetensors
Model size
3B params
Tensor type
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ahmedandaloes/security-llama3.2-3b-MLX-bf16

Quantized
(5)
this model

Collection including ahmedandaloes/security-llama3.2-3b-MLX-bf16