Instructions to use Canstralian/pentest_ai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Canstralian/pentest_ai with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Canstralian/pentest_ai")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Canstralian/pentest_ai", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Canstralian/pentest_ai with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Canstralian/pentest_ai" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Canstralian/pentest_ai", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Canstralian/pentest_ai
- SGLang
How to use Canstralian/pentest_ai 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 "Canstralian/pentest_ai" \ --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": "Canstralian/pentest_ai", "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 "Canstralian/pentest_ai" \ --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": "Canstralian/pentest_ai", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Canstralian/pentest_ai with Docker Model Runner:
docker model run hf.co/Canstralian/pentest_ai
Create .gitignore
Browse files- .gitignore +124 -0
.gitignore
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Byte-compiled / optimized / DLL files
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[cod]
|
| 4 |
+
*$py.class
|
| 5 |
+
|
| 6 |
+
# C extensions
|
| 7 |
+
*.so
|
| 8 |
+
|
| 9 |
+
# Distribution / packaging
|
| 10 |
+
.Python
|
| 11 |
+
env/
|
| 12 |
+
venv/
|
| 13 |
+
ENV/
|
| 14 |
+
env.bak/
|
| 15 |
+
venv.bak/
|
| 16 |
+
*.egg-info/
|
| 17 |
+
dist/
|
| 18 |
+
build/
|
| 19 |
+
*.egg
|
| 20 |
+
|
| 21 |
+
# PyInstaller
|
| 22 |
+
# Usually these files are written by a python script from a template
|
| 23 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
| 24 |
+
*.manifest
|
| 25 |
+
*.spec
|
| 26 |
+
|
| 27 |
+
# Installer logs
|
| 28 |
+
pip-log.txt
|
| 29 |
+
pip-delete-this-directory.txt
|
| 30 |
+
|
| 31 |
+
# Unit test / coverage reports
|
| 32 |
+
htmlcov/
|
| 33 |
+
.tox/
|
| 34 |
+
.nox/
|
| 35 |
+
.coverage
|
| 36 |
+
*.cover
|
| 37 |
+
.hypothesis/
|
| 38 |
+
.coverage.*
|
| 39 |
+
|
| 40 |
+
# Translations
|
| 41 |
+
*.mo
|
| 42 |
+
*.pot
|
| 43 |
+
|
| 44 |
+
# Django stuff:
|
| 45 |
+
*.log
|
| 46 |
+
local_settings.py
|
| 47 |
+
db.sqlite3
|
| 48 |
+
db.sqlite3-journal
|
| 49 |
+
|
| 50 |
+
# Flask stuff:
|
| 51 |
+
instance/
|
| 52 |
+
.webassets-cache
|
| 53 |
+
|
| 54 |
+
# Scrapy stuff:
|
| 55 |
+
.scrapy
|
| 56 |
+
|
| 57 |
+
# Sphinx documentation
|
| 58 |
+
docs/_build/
|
| 59 |
+
|
| 60 |
+
# Jupyter Notebook
|
| 61 |
+
.ipynb_checkpoints
|
| 62 |
+
|
| 63 |
+
# IPython
|
| 64 |
+
profile_default/
|
| 65 |
+
ipython_config.py
|
| 66 |
+
|
| 67 |
+
# pyenv
|
| 68 |
+
.python-version
|
| 69 |
+
|
| 70 |
+
# Celery stuff
|
| 71 |
+
celerybeat-schedule
|
| 72 |
+
celerybeat.pid
|
| 73 |
+
|
| 74 |
+
# SageMath parsed files
|
| 75 |
+
*.sage.py
|
| 76 |
+
|
| 77 |
+
# Environments
|
| 78 |
+
.env
|
| 79 |
+
.envrc
|
| 80 |
+
*.env
|
| 81 |
+
*.env.*
|
| 82 |
+
venv/
|
| 83 |
+
ENV/
|
| 84 |
+
env.bak/
|
| 85 |
+
venv.bak/
|
| 86 |
+
|
| 87 |
+
# PyCharm
|
| 88 |
+
# JetBrains specific template
|
| 89 |
+
.idea
|
| 90 |
+
.idea_modules.xml
|
| 91 |
+
.idea/workspace.xml
|
| 92 |
+
|
| 93 |
+
# VS Code
|
| 94 |
+
.vscode/
|
| 95 |
+
|
| 96 |
+
# Pytest
|
| 97 |
+
.cache/
|
| 98 |
+
|
| 99 |
+
# macOS
|
| 100 |
+
.DS_Store
|
| 101 |
+
|
| 102 |
+
# Windows
|
| 103 |
+
Thumbs.db
|
| 104 |
+
ehthumbs.db
|
| 105 |
+
Desktop.ini
|
| 106 |
+
$RECYCLE.BIN/
|
| 107 |
+
|
| 108 |
+
# VS Code
|
| 109 |
+
.vscode/
|
| 110 |
+
.history/
|
| 111 |
+
|
| 112 |
+
# MyPy
|
| 113 |
+
.mypy_cache/
|
| 114 |
+
.dmypy.json
|
| 115 |
+
dmypy.json
|
| 116 |
+
|
| 117 |
+
# Pyre
|
| 118 |
+
.pyre/
|
| 119 |
+
|
| 120 |
+
# Anaconda
|
| 121 |
+
.conda/
|
| 122 |
+
.condarc
|
| 123 |
+
.conda_environments/
|
| 124 |
+
envs/
|