Instructions to use afrideva/LMCocktail-phi-2-v1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use afrideva/LMCocktail-phi-2-v1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="afrideva/LMCocktail-phi-2-v1-GGUF", filename="lmcocktail-phi-2-v1.fp16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use afrideva/LMCocktail-phi-2-v1-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf afrideva/LMCocktail-phi-2-v1-GGUF: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 afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf afrideva/LMCocktail-phi-2-v1-GGUF: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 afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use afrideva/LMCocktail-phi-2-v1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "afrideva/LMCocktail-phi-2-v1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "afrideva/LMCocktail-phi-2-v1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M
- Ollama
How to use afrideva/LMCocktail-phi-2-v1-GGUF with Ollama:
ollama run hf.co/afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M
- Unsloth Studio
How to use afrideva/LMCocktail-phi-2-v1-GGUF 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 afrideva/LMCocktail-phi-2-v1-GGUF 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 afrideva/LMCocktail-phi-2-v1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for afrideva/LMCocktail-phi-2-v1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use afrideva/LMCocktail-phi-2-v1-GGUF with Docker Model Runner:
docker model run hf.co/afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M
- Lemonade
How to use afrideva/LMCocktail-phi-2-v1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull afrideva/LMCocktail-phi-2-v1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LMCocktail-phi-2-v1-GGUF-Q4_K_M
List all available models
lemonade list
Yhyu13/LMCocktail-phi-2-v1-GGUF
Quantized GGUF model files for LMCocktail-phi-2-v1 from Yhyu13
| Name | Quant method | Size |
|---|---|---|
| lmcocktail-phi-2-v1.fp16.gguf | fp16 | 5.56 GB |
| lmcocktail-phi-2-v1.q2_k.gguf | q2_k | 1.17 GB |
| lmcocktail-phi-2-v1.q3_k_m.gguf | q3_k_m | 1.48 GB |
| lmcocktail-phi-2-v1.q4_k_m.gguf | q4_k_m | 1.79 GB |
| lmcocktail-phi-2-v1.q5_k_m.gguf | q5_k_m | 2.07 GB |
| lmcocktail-phi-2-v1.q6_k.gguf | q6_k | 2.29 GB |
| lmcocktail-phi-2-v1.q8_0.gguf | q8_0 | 2.96 GB |
Original Model Card:
LM-cocktail phi-2 v1
This is a 50%-50% model of the phi2 alpca gpt4 and phi2 ultrachat200K models.
https://huggingface.co/Yhyu13/phi-2-sft-alpaca_gpt4_en-ep1
https://huggingface.co/venkycs/phi-2-ultrachat200k
Code
The LM-cocktail is novel technique for merging multiple models https://arxiv.org/abs/2311.13534
Code is backed up by this repo https://github.com/FlagOpen/FlagEmbedding.git
Merging scripts available under the ./scripts folder
- Downloads last month
- 49
Model tree for afrideva/LMCocktail-phi-2-v1-GGUF
Base model
Yhyu13/LMCocktail-phi-2-v1