Instructions to use Nafnlaus/Wide-Sheared-LLaMA-796M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Nafnlaus/Wide-Sheared-LLaMA-796M with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Nafnlaus/Wide-Sheared-LLaMA-796M", filename="Wide-Sheared-LLaMA-796M.Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Nafnlaus/Wide-Sheared-LLaMA-796M with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
Use Docker
docker model run hf.co/Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Nafnlaus/Wide-Sheared-LLaMA-796M with Ollama:
ollama run hf.co/Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
- Unsloth Studio new
How to use Nafnlaus/Wide-Sheared-LLaMA-796M with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Nafnlaus/Wide-Sheared-LLaMA-796M to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Nafnlaus/Wide-Sheared-LLaMA-796M to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Nafnlaus/Wide-Sheared-LLaMA-796M to start chatting
- Docker Model Runner
How to use Nafnlaus/Wide-Sheared-LLaMA-796M with Docker Model Runner:
docker model run hf.co/Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
- Lemonade
How to use Nafnlaus/Wide-Sheared-LLaMA-796M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Nafnlaus/Wide-Sheared-LLaMA-796M:Q4_K_M
Run and chat with the model
lemonade run user.Wide-Sheared-LLaMA-796M-Q4_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:# Run inference directly in the terminal:
llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:# Run inference directly in the terminal:
./llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:# Run inference directly in the terminal:
./build/bin/llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M:Use Docker
docker model run hf.co/Nafnlaus/Wide-Sheared-LLaMA-796M:This is a GGUF conversion of https://huggingface.co/minghaoyan/Wide-Sheared-LLaMA-796M, based on the paper "Decoding Speculative Decoding" by Minghao Yan, Saurabh Agarwal, and Shivaram Venkataraman.
https://arxiv.org/pdf/2402.01528
For those not familiar with speculative decoding, it is a technique to accelerate inference of larger models based on the premise that some tokens are much easier to predict than others. A large model is paired with a smaller draft model. The draft model is used to rapidly generate a possible predictive token sequence, which the large model then simultaneously verifies. Wherever the drafted token sequence would differ from what the large model would have generated, the large model's token is used instead (the large model will always correct or add one token), and the small model then drafts new tokens from that point forward, with the process repeating. As a result, the same sequence is generated, but at a significantly accelerated rate.
The wide sheared LLaMA models by minghaoyan are optimized for use as speculative decoding draft models. To use these with llama.cpp, use the "-md " option, and consider tuning the --draft parameter.
- Downloads last month
- 141
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf Nafnlaus/Wide-Sheared-LLaMA-796M:# Run inference directly in the terminal: llama-cli -hf Nafnlaus/Wide-Sheared-LLaMA-796M: