Instructions to use winglian/basilisk-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use winglian/basilisk-4b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="winglian/basilisk-4b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("winglian/basilisk-4b") model = AutoModelForCausalLM.from_pretrained("winglian/basilisk-4b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use winglian/basilisk-4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "winglian/basilisk-4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "winglian/basilisk-4b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/winglian/basilisk-4b
- SGLang
How to use winglian/basilisk-4b 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 "winglian/basilisk-4b" \ --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": "winglian/basilisk-4b", "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 "winglian/basilisk-4b" \ --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": "winglian/basilisk-4b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use winglian/basilisk-4b with Docker Model Runner:
docker model run hf.co/winglian/basilisk-4b
Commit History
-
Training in progress, step 758
b91c2e5 -
Training in progress, step 379
4206cb7
-
Update README.md
30f6933 -
Create README.md
3bd6d45 -
Update config.jsom to enable cache
a91756e
-
Training in progress, step 9475
ad5a502 -
Training in progress, step 9096
179d9a0
-
Training in progress, step 8717
54eebbf -
Training in progress, step 8338
db5dcf1 -
Training in progress, step 7959
d7c5003 -
Training in progress, step 7580
9c1886d -
Training in progress, step 7201
2792720 -
Training in progress, step 6822
60e3c88 -
Training in progress, step 6443
057c55c -
Training in progress, step 6064
602acaa -
Training in progress, step 5685
7c8849d -
Training in progress, step 5306
cf825f2 -
Training in progress, step 4927
e1b764c -
Training in progress, step 4548
6214d4b -
Training in progress, step 4169
26fdb74 -
Training in progress, step 3790
3d88698 -
Training in progress, step 3411
a4e0291 -
Training in progress, step 3032
592ea11 -
Training in progress, step 2653
3045114
-
Training in progress, step 2274
15f1e15 -
Training in progress, step 1895
c4c6542 -
Training in progress, step 1516
362d8e4 -
Training in progress, step 1137
afb7dee -
Training in progress, step 758
fb5813a -
Training in progress, step 379
c89d4a7 -
initial commit
c7a97d6