Instructions to use CyberNative/CyberBase-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CyberNative/CyberBase-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CyberNative/CyberBase-13b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CyberNative/CyberBase-13b") model = AutoModelForCausalLM.from_pretrained("CyberNative/CyberBase-13b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CyberNative/CyberBase-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CyberNative/CyberBase-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CyberNative/CyberBase-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CyberNative/CyberBase-13b
- SGLang
How to use CyberNative/CyberBase-13b 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 "CyberNative/CyberBase-13b" \ --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": "CyberNative/CyberBase-13b", "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 "CyberNative/CyberBase-13b" \ --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": "CyberNative/CyberBase-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CyberNative/CyberBase-13b with Docker Model Runner:
docker model run hf.co/CyberNative/CyberBase-13b
Mark archived and not maintained
Browse files
README.md
CHANGED
|
@@ -4,13 +4,15 @@ base_model:
|
|
| 4 |
- lmsys/vicuna-13b-v1.5-16k
|
| 5 |
---
|
| 6 |
|
|
|
|
|
|
|
| 7 |
<div style="display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 1.25em 0;font-size:0.95em"><a href="https://huggingface.co/CyberNative-AI" style="display:inline-flex;align-items:center;gap:8px;text-decoration:none"><img src="https://huggingface.co/spaces/CyberNative-AI/README/resolve/5bfeca5daba7030960ddd05356ab60bfa41354d0/cybernative-cn-mark-64.png" width="22" height="22" alt="" style="margin:0;display:block;border-radius:4px"><strong>CyberNative AI LLC</strong></a><span>an AI-run company 路 <a href="https://cybernative.ai/">cybernative.ai</a></span></div>
|
| 8 |
|
| 9 |
CyberBase is an experimental *base model* for cybersecurity, published in August 2023. (llama-2-13b -> lmsys/vicuna-13b-v1.5-16k -> CyberBase)
|
| 10 |
|
| 11 |
-
# Base cybersecurity model for future fine-tuning, it is not
|
| 12 |
- **CyberBase** is a [lmsys/vicuna-13b-v1.5-16k](https://huggingface.co/lmsys/vicuna-13b-v1.5-16k) QLORA fine-tuned on [CyberNative/github_cybersecurity_READMEs](https://huggingface.co/datasets/CyberNative/github_cybersecurity_READMEs) with a single 3090.
|
| 13 |
-
- It might, therefore, inherited [prompt template of FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md#prompt-template)
|
| 14 |
|
| 15 |
## Fine-tuning information
|
| 16 |
- **sequence_len:** 4096 (used during fine-tuning, but should generate up to 16k)
|
|
|
|
| 4 |
- lmsys/vicuna-13b-v1.5-16k
|
| 5 |
---
|
| 6 |
|
| 7 |
+
**Archived. Not maintained.**
|
| 8 |
+
|
| 9 |
<div style="display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 1.25em 0;font-size:0.95em"><a href="https://huggingface.co/CyberNative-AI" style="display:inline-flex;align-items:center;gap:8px;text-decoration:none"><img src="https://huggingface.co/spaces/CyberNative-AI/README/resolve/5bfeca5daba7030960ddd05356ab60bfa41354d0/cybernative-cn-mark-64.png" width="22" height="22" alt="" style="margin:0;display:block;border-radius:4px"><strong>CyberNative AI LLC</strong></a><span>an AI-run company 路 <a href="https://cybernative.ai/">cybernative.ai</a></span></div>
|
| 10 |
|
| 11 |
CyberBase is an experimental *base model* for cybersecurity, published in August 2023. (llama-2-13b -> lmsys/vicuna-13b-v1.5-16k -> CyberBase)
|
| 12 |
|
| 13 |
+
# Base cybersecurity model for future fine-tuning, it is not recommended to use on its own.
|
| 14 |
- **CyberBase** is a [lmsys/vicuna-13b-v1.5-16k](https://huggingface.co/lmsys/vicuna-13b-v1.5-16k) QLORA fine-tuned on [CyberNative/github_cybersecurity_READMEs](https://huggingface.co/datasets/CyberNative/github_cybersecurity_READMEs) with a single 3090.
|
| 15 |
+
- It might, therefore, have inherited [prompt template of FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md#prompt-template)
|
| 16 |
|
| 17 |
## Fine-tuning information
|
| 18 |
- **sequence_len:** 4096 (used during fine-tuning, but should generate up to 16k)
|