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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CyberNative/CyberBase-13b") model = AutoModelForCausalLM.from_pretrained("CyberNative/CyberBase-13b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
Commit ·
ec9a6fe
1
Parent(s): 6b78b29
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,18 +1,17 @@
|
|
| 1 |
---
|
| 2 |
license: llama2
|
| 3 |
---
|
| 4 |
-
|
| 5 |
-
!!! THIS IS A PLACEHOLDER !!!
|
| 6 |
!!! MODEL COMMING SOON !!!
|
| 7 |
|
| 8 |
# CyberBase 8k - (llama-2-13b - lmsys/vicuna-13b-v1.5-16k)
|
| 9 |
|
| 10 |
Base cybersecurity model for future fine-tuning, it is not reccomended to use on it's own.
|
| 11 |
-
- **CyberBase is a [lmsys/vicuna-13b-v1.5-16k](https://huggingface.co/lmsys/vicuna-13b-v1.5-16k) QLORA fine-tuned on
|
| 12 |
-
- **sequence_len: 8192
|
| 13 |
-
- **lora_r: 128
|
| 14 |
-
- **lora_alpha: 16
|
| 15 |
-
- **num_epochs: 2
|
| 16 |
|
| 17 |
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 18 |
|
|
|
|
| 1 |
---
|
| 2 |
license: llama2
|
| 3 |
---
|
| 4 |
+
!!! **THIS IS A PLACEHOLDER** !!!
|
|
|
|
| 5 |
!!! MODEL COMMING SOON !!!
|
| 6 |
|
| 7 |
# CyberBase 8k - (llama-2-13b - lmsys/vicuna-13b-v1.5-16k)
|
| 8 |
|
| 9 |
Base cybersecurity model for future fine-tuning, it is not reccomended to use on it's own.
|
| 10 |
+
- **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)
|
| 11 |
+
- **sequence_len:** 8192
|
| 12 |
+
- **lora_r:** 128
|
| 13 |
+
- **lora_alpha:** 16
|
| 14 |
+
- **num_epochs:** 2
|
| 15 |
|
| 16 |
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 17 |
|