CHnages
Browse files
README.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- text-generation
|
5 |
+
- causal-lm
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
base_model:
|
9 |
+
- Qwen/Qwen3-0.6B
|
10 |
+
---
|
11 |
+
|
12 |
+
|
13 |
+
# Best-Security-Practices-Model
|
14 |
+
|
15 |
+
This is a Best Security Practices Model trained on Best Security Practices Dataset
|
16 |
+
|
17 |
+
## Usage
|
18 |
+
|
19 |
+
```python
|
20 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
21 |
+
|
22 |
+
model_name = "MaheshNagabhairava/Best-Security-Practices-Model"
|
23 |
+
|
24 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
25 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True)
|
26 |
+
|
27 |
+
input_text = "Where to store Databse passwords?"
|
28 |
+
inputs = tokenizer(input_text, return_tensors="pt")
|
29 |
+
outputs = model.generate(**inputs, max_new_tokens=50)
|
30 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|