Instructions to use Mudunk/BitNet_LLM_Project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mudunk/BitNet_LLM_Project with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mudunk/BitNet_LLM_Project")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Mudunk/BitNet_LLM_Project", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mudunk/BitNet_LLM_Project with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mudunk/BitNet_LLM_Project" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mudunk/BitNet_LLM_Project", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mudunk/BitNet_LLM_Project
- SGLang
How to use Mudunk/BitNet_LLM_Project 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 "Mudunk/BitNet_LLM_Project" \ --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": "Mudunk/BitNet_LLM_Project", "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 "Mudunk/BitNet_LLM_Project" \ --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": "Mudunk/BitNet_LLM_Project", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Mudunk/BitNet_LLM_Project with Docker Model Runner:
docker model run hf.co/Mudunk/BitNet_LLM_Project
File size: 268 Bytes
beec39f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | {
"architectures": [
"BitNetGPTForCausalLM"
],
"bias": false,
"block_size": 256,
"dropout": 0.2,
"dtype": "float32",
"model_type": "bitnet_gpt",
"n_embd": 384,
"n_head": 6,
"n_layer": 6,
"transformers_version": "5.13.1",
"vocab_size": 65
}
|