Text Generation
Transformers
Safetensors
Vietnamese
English
llama
cybersecurity
text-generation-inference
unsloth
qwen2
trl
grpo
conversational
Instructions to use viettelsecurity-ai/security-llama3.2-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use viettelsecurity-ai/security-llama3.2-3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="viettelsecurity-ai/security-llama3.2-3b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("viettelsecurity-ai/security-llama3.2-3b") model = AutoModelForCausalLM.from_pretrained("viettelsecurity-ai/security-llama3.2-3b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use viettelsecurity-ai/security-llama3.2-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "viettelsecurity-ai/security-llama3.2-3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "viettelsecurity-ai/security-llama3.2-3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/viettelsecurity-ai/security-llama3.2-3b
- SGLang
How to use viettelsecurity-ai/security-llama3.2-3b 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 "viettelsecurity-ai/security-llama3.2-3b" \ --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": "viettelsecurity-ai/security-llama3.2-3b", "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 "viettelsecurity-ai/security-llama3.2-3b" \ --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": "viettelsecurity-ai/security-llama3.2-3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use viettelsecurity-ai/security-llama3.2-3b with Docker Model Runner:
docker model run hf.co/viettelsecurity-ai/security-llama3.2-3b
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,107 +14,6 @@ tags:
|
|
| 14 |
- trl
|
| 15 |
- grpo
|
| 16 |
|
| 17 |
-
model-index:
|
| 18 |
-
- name: security-llama3.2-3b
|
| 19 |
-
results:
|
| 20 |
-
- task:
|
| 21 |
-
type: text-generation
|
| 22 |
-
name: Text Generation
|
| 23 |
-
dataset:
|
| 24 |
-
name: IFEval (0-Shot)
|
| 25 |
-
type: HuggingFaceH4/ifeval
|
| 26 |
-
args:
|
| 27 |
-
num_few_shot: 0
|
| 28 |
-
metrics:
|
| 29 |
-
- type: inst_level_strict_acc and prompt_level_strict_acc
|
| 30 |
-
value: 34.08
|
| 31 |
-
name: strict accuracy
|
| 32 |
-
source:
|
| 33 |
-
url: >-
|
| 34 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=viettelsecurity-ai/security-llama3.2-3b
|
| 35 |
-
name: Open LLM Leaderboard
|
| 36 |
-
- task:
|
| 37 |
-
type: text-generation
|
| 38 |
-
name: Text Generation
|
| 39 |
-
dataset:
|
| 40 |
-
name: BBH (3-Shot)
|
| 41 |
-
type: BBH
|
| 42 |
-
args:
|
| 43 |
-
num_few_shot: 3
|
| 44 |
-
metrics:
|
| 45 |
-
- type: acc_norm
|
| 46 |
-
value: 10.1
|
| 47 |
-
name: normalized accuracy
|
| 48 |
-
source:
|
| 49 |
-
url: >-
|
| 50 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=viettelsecurity-ai/security-llama3.2-3b
|
| 51 |
-
name: Open LLM Leaderboard
|
| 52 |
-
- task:
|
| 53 |
-
type: text-generation
|
| 54 |
-
name: Text Generation
|
| 55 |
-
dataset:
|
| 56 |
-
name: MATH Lvl 5 (4-Shot)
|
| 57 |
-
type: hendrycks/competition_math
|
| 58 |
-
args:
|
| 59 |
-
num_few_shot: 4
|
| 60 |
-
metrics:
|
| 61 |
-
- type: exact_match
|
| 62 |
-
value: 0.63
|
| 63 |
-
name: exact match
|
| 64 |
-
source:
|
| 65 |
-
url: >-
|
| 66 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=viettelsecurity-ai/security-llama3.2-3b
|
| 67 |
-
name: Open LLM Leaderboard
|
| 68 |
-
- task:
|
| 69 |
-
type: text-generation
|
| 70 |
-
name: Text Generation
|
| 71 |
-
dataset:
|
| 72 |
-
name: GPQA (0-shot)
|
| 73 |
-
type: Idavidrein/gpqa
|
| 74 |
-
args:
|
| 75 |
-
num_few_shot: 0
|
| 76 |
-
metrics:
|
| 77 |
-
- type: acc_norm
|
| 78 |
-
value: 0.12
|
| 79 |
-
name: acc_norm
|
| 80 |
-
source:
|
| 81 |
-
url: >-
|
| 82 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=viettelsecurity-ai/security-llama3.2-3b
|
| 83 |
-
name: Open LLM Leaderboard
|
| 84 |
-
- task:
|
| 85 |
-
type: text-generation
|
| 86 |
-
name: Text Generation
|
| 87 |
-
dataset:
|
| 88 |
-
name: MuSR (0-shot)
|
| 89 |
-
type: TAUR-Lab/MuSR
|
| 90 |
-
args:
|
| 91 |
-
num_few_shot: 0
|
| 92 |
-
metrics:
|
| 93 |
-
- type: acc_norm
|
| 94 |
-
value: 1.2
|
| 95 |
-
name: acc_norm
|
| 96 |
-
source:
|
| 97 |
-
url: >-
|
| 98 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=viettelsecurity-ai/security-llama3.2-3b
|
| 99 |
-
name: Open LLM Leaderboard
|
| 100 |
-
- task:
|
| 101 |
-
type: text-generation
|
| 102 |
-
name: Text Generation
|
| 103 |
-
dataset:
|
| 104 |
-
name: MMLU-PRO (5-shot)
|
| 105 |
-
type: TIGER-Lab/MMLU-Pro
|
| 106 |
-
config: main
|
| 107 |
-
split: test
|
| 108 |
-
args:
|
| 109 |
-
num_few_shot: 5
|
| 110 |
-
metrics:
|
| 111 |
-
- type: acc
|
| 112 |
-
value: 4.93
|
| 113 |
-
name: accuracy
|
| 114 |
-
source:
|
| 115 |
-
url: >-
|
| 116 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=viettelsecurity-ai/security-llama3.2-3b
|
| 117 |
-
name: Open LLM Leaderboard
|
| 118 |
---
|
| 119 |
|
| 120 |
## Model Overview
|
|
|
|
| 14 |
- trl
|
| 15 |
- grpo
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
## Model Overview
|