Text Generation
Transformers
Safetensors
English
gpt2
cybersecurity
passwords
text-generation-inference
Instructions to use CodeferSystem/GPT2-Hacker-password-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CodeferSystem/GPT2-Hacker-password-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CodeferSystem/GPT2-Hacker-password-generator")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CodeferSystem/GPT2-Hacker-password-generator") model = AutoModelForCausalLM.from_pretrained("CodeferSystem/GPT2-Hacker-password-generator") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CodeferSystem/GPT2-Hacker-password-generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CodeferSystem/GPT2-Hacker-password-generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CodeferSystem/GPT2-Hacker-password-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CodeferSystem/GPT2-Hacker-password-generator
- SGLang
How to use CodeferSystem/GPT2-Hacker-password-generator 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 "CodeferSystem/GPT2-Hacker-password-generator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CodeferSystem/GPT2-Hacker-password-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "CodeferSystem/GPT2-Hacker-password-generator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CodeferSystem/GPT2-Hacker-password-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CodeferSystem/GPT2-Hacker-password-generator with Docker Model Runner:
docker model run hf.co/CodeferSystem/GPT2-Hacker-password-generator
Update README.md
Browse files– Added tags that the model matches.
– Added information about the dataset used to fine-tune this model.
README.md
CHANGED
|
@@ -6,6 +6,11 @@ pipeline_tag: text-generation
|
|
| 6 |
base_model:
|
| 7 |
- openai-community/gpt2
|
| 8 |
library_name: transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
# GPT-2 Hacker password generator.
|
| 11 |
This model can generate hacker passwords.
|
|
@@ -78,4 +83,8 @@ print(generate_answer(question)) # Print the generated password
|
|
| 78 |
- o4K*mQq9>Zu
|
| 79 |
- e5vx=KqE_j>kFj&*
|
| 80 |
- xD2PZ5@kz_hFq|W=
|
| 81 |
-
- h=rZ?^<Qp~7&z7XZ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
base_model:
|
| 7 |
- openai-community/gpt2
|
| 8 |
library_name: transformers
|
| 9 |
+
datasets:
|
| 10 |
+
- CodeferSystem/GPT2-Hacker-password-generator-dataset
|
| 11 |
+
tags:
|
| 12 |
+
- cybersecurity
|
| 13 |
+
- passwords
|
| 14 |
---
|
| 15 |
# GPT-2 Hacker password generator.
|
| 16 |
This model can generate hacker passwords.
|
|
|
|
| 83 |
- o4K*mQq9>Zu
|
| 84 |
- e5vx=KqE_j>kFj&*
|
| 85 |
- xD2PZ5@kz_hFq|W=
|
| 86 |
+
- h=rZ?^<Qp~7&z7XZ
|
| 87 |
+
|
| 88 |
+
## Fine-tuned data
|
| 89 |
+
The dataset on which the model was fine-tuned was uploaded to the public.
|
| 90 |
+
CodeferSystem/GPT2-Hacker-password-generator-dataset
|