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
Commit History
-
Update README.md (#6)
Verified signature- Update README.md (58016c2859c7ed4ed3cfa2169a4bb06fbea2206f) Co-authored-by: cherry0328 <cherry0328@users.noreply.huggingface.co>dee2734
-
Update README.md
Verified signaturecb23f0d
-
Update README.md
Verified signaturef10ebee
-
Update README.md
7eae523 -
Upload LlamaForCausalLM
480a5ec -
Upload tokenizer
dd286d9 -
Upload tokenizer
bdcab64
-
Update README.md
de3978a -
Update README.md
5b637c5 -
Update README.md
618ddcb -
Update README.md
184c7b6 -
Update README.md
084d99e -
Update README.md
0404c95 -
Update README.md
3932ee9 -
Update README.md
de666a5 -
Update README.md
c4083fa -
Update README.md
d3f16ed -
Update README.md
950eeb4 -
Update README.md
86d2f22 -
Update README.md
72876e2 -
Update README.md
51e603c -
Update README.md
c0611db -
Update README.md
fdda69d -
Upload image.png
f867070 -
Update README.md
ec9a6fe -
Update README.md
6b78b29 -
initial commit
463b2ce