Instructions to use mardakani/Bitnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mardakani/Bitnet with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf mardakani/Bitnet:F32 # Run inference directly in the terminal: llama cli -hf mardakani/Bitnet:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mardakani/Bitnet:F32 # Run inference directly in the terminal: llama cli -hf mardakani/Bitnet:F32
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf mardakani/Bitnet:F32 # Run inference directly in the terminal: ./build/bin/llama cli -hf mardakani/Bitnet:F32
Use Docker
docker model run hf.co/mardakani/Bitnet:F32
- Llama new
- LM Studio
- Jan
- Ollama
How to use mardakani/Bitnet with Ollama:
ollama run hf.co/mardakani/Bitnet:F32
- Unsloth Desktop
- Docker Model Runner
How to use mardakani/Bitnet with Docker Model Runner:
docker model run hf.co/mardakani/Bitnet:F32
- Lemonade
How to use mardakani/Bitnet with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mardakani/Bitnet:F32
Run and chat with the model
lemonade run user.Bitnet-F32
List all available models
lemonade list
- Atomic Chat
Download config.json from mardakani/Bitnet: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/mardakani/Bitnet/resolve/main/config.json
- Command line
-
hf download hf://mardakani/Bitnet/config.json
-
curl -L -o config.json https://huggingface.co/mardakani/Bitnet/resolve/main/config.json
749 Bytes
| { | |
| "_name_or_path": "1bitLLM/bitnet_b1_58-large", | |
| "architectures": [ | |
| "BitnetForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "hidden_act": "silu", | |
| "hidden_size": 1536, | |
| "initializer_range": 0.02, | |
| "input_bits": 8, | |
| "intermediate_size": 4096, | |
| "max_position_embeddings": 2048, | |
| "model_type": "llama", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 16, | |
| "pad_token_id": 32000, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "tie_word_embeddings": true, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.39.0", | |
| "use_cache": true, | |
| "vocab_size": 32002, | |
| "weight_bits": 1 | |
| } | |