Text Generation
Transformers
Safetensors
English
gpt2
cybersecurity
passwords
text-generation-inference
Instructions to use CodeferSystem/GPT2-Hacker-password-generator-Medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CodeferSystem/GPT2-Hacker-password-generator-Medium with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CodeferSystem/GPT2-Hacker-password-generator-Medium")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CodeferSystem/GPT2-Hacker-password-generator-Medium") model = AutoModelForCausalLM.from_pretrained("CodeferSystem/GPT2-Hacker-password-generator-Medium") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CodeferSystem/GPT2-Hacker-password-generator-Medium 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-Medium" # 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-Medium", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CodeferSystem/GPT2-Hacker-password-generator-Medium
- SGLang
How to use CodeferSystem/GPT2-Hacker-password-generator-Medium 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-Medium" \ --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-Medium", "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-Medium" \ --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-Medium", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CodeferSystem/GPT2-Hacker-password-generator-Medium with Docker Model Runner:
docker model run hf.co/CodeferSystem/GPT2-Hacker-password-generator-Medium
Update README.md
Browse filesRefining the description.
README.md
CHANGED
|
@@ -8,6 +8,7 @@ pipeline_tag: text-generation
|
|
| 8 |
tags:
|
| 9 |
- cybersecurity
|
| 10 |
- passwords
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# GPT-2 Hacker password generator (medium)
|
|
@@ -45,7 +46,7 @@ output = model.generate(
|
|
| 45 |
**inputs,
|
| 46 |
max_length=60,
|
| 47 |
do_sample=True,
|
| 48 |
-
temperature=0.9,
|
| 49 |
top_p=0.95,
|
| 50 |
no_repeat_ngram_size=2
|
| 51 |
)
|
|
@@ -75,5 +76,5 @@ Assistant: t~5^>6hVhxQ$yY
|
|
| 75 |
|
| 76 |
[GPT2-Hacker-password-generator Small model](https://huggingface.co/CodeferSystem/GPT2-Hacker-password-generator)
|
| 77 |
|
| 78 |
-
#
|
| 79 |
The dataset on which the model was trained will be published later.
|
|
|
|
| 8 |
tags:
|
| 9 |
- cybersecurity
|
| 10 |
- passwords
|
| 11 |
+
library_name: transformers
|
| 12 |
---
|
| 13 |
|
| 14 |
# GPT-2 Hacker password generator (medium)
|
|
|
|
| 46 |
**inputs,
|
| 47 |
max_length=60,
|
| 48 |
do_sample=True,
|
| 49 |
+
temperature=0.9, # Change for creativity
|
| 50 |
top_p=0.95,
|
| 51 |
no_repeat_ngram_size=2
|
| 52 |
)
|
|
|
|
| 76 |
|
| 77 |
[GPT2-Hacker-password-generator Small model](https://huggingface.co/CodeferSystem/GPT2-Hacker-password-generator)
|
| 78 |
|
| 79 |
+
# Dataset of this model
|
| 80 |
The dataset on which the model was trained will be published later.
|