Instructions to use 0x7o/BulgakovLM-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0x7o/BulgakovLM-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="0x7o/BulgakovLM-3B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("0x7o/BulgakovLM-3B") model = AutoModelForCausalLM.from_pretrained("0x7o/BulgakovLM-3B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 0x7o/BulgakovLM-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "0x7o/BulgakovLM-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0x7o/BulgakovLM-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/0x7o/BulgakovLM-3B
- SGLang
How to use 0x7o/BulgakovLM-3B 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 "0x7o/BulgakovLM-3B" \ --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": "0x7o/BulgakovLM-3B", "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 "0x7o/BulgakovLM-3B" \ --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": "0x7o/BulgakovLM-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 0x7o/BulgakovLM-3B with Docker Model Runner:
docker model run hf.co/0x7o/BulgakovLM-3B
Commit History
-
Update README.md
Verified signature494df68
-
Update README.md
Verified signature5222191 -
Upload tokenizer
Verified signature4e0c668 -
Update README.md
Verified signature11789e6 -
Update README.md
Verified signaturebea7332
-
Adding `safetensors` variant of this model (#1)
Danil +1: SFconvertbot - Adding `safetensors` variant of this model (2ee3c0de33aa60ab70f95b983a282f680a48200a) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>9568e44
-
Update README.md
Danile87c086
-
Upload config.json
Danil5ca0064 -
Delete config.json.json
Danila149b6a -
Upload config.json.json
Danil6c7b4c9 -
Upload pytorch_model.bin
Danil87741fa
-
initial commit
Danilfec2a86