Views
No views yet
| Developers | Microsoft |
| Architecture | 14B parameters, dense decoder-only Transformer model |
| Inputs | Text, best suited for prompts in the chat format |
| Context length | 16K tokens |
| Outputs | Generated text in response to input |
| License | MIT |
cyber-llm-14b and includes a wide variety of sources from:cyber-llm-14b is best suited for prompts using the chat format as follows:1<|begin_of_text|><|start_header_id|>user<|end_header_id|>
2Hello!<|eot_id|><|start_header_id|>assistant<|end_header_id|>
3Hey there! How are you?<|eot_id|><|start_header_id|>user<|end_header_id|>
4I'm great thanks!<|eot_id|>transformers1import transformers
2
3pipeline = transformers.pipeline(
4 "text-generation",
5 model="viettelsecurity-ai/cyber-llm-14b",
6 model_kwargs={"torch_dtype": "auto"},
7 device_map="auto",
8)
9
10messages = [
11 {"role": "system", "content": "You are a SOC-tier3"},
12 {"role": "user", "content": "What is the url phishing?"},
13]
14
15outputs = pipeline(messages, max_new_tokens=2048)
16print(outputs[0]["generated_text"][-1])