Instructions to use llmware/bling-phi-2-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/bling-phi-2-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/bling-phi-2-gguf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/bling-phi-2-gguf 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 llmware/bling-phi-2-gguf # Run inference directly in the terminal: llama cli -hf llmware/bling-phi-2-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf llmware/bling-phi-2-gguf # Run inference directly in the terminal: llama cli -hf llmware/bling-phi-2-gguf
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 llmware/bling-phi-2-gguf # Run inference directly in the terminal: ./llama-cli -hf llmware/bling-phi-2-gguf
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 llmware/bling-phi-2-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/bling-phi-2-gguf
Use Docker
docker model run hf.co/llmware/bling-phi-2-gguf
- LM Studio
- Jan
- Ollama
How to use llmware/bling-phi-2-gguf with Ollama:
ollama run hf.co/llmware/bling-phi-2-gguf
- Unsloth Studio
How to use llmware/bling-phi-2-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 llmware/bling-phi-2-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 llmware/bling-phi-2-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for llmware/bling-phi-2-gguf to start chatting
- Docker Model Runner
How to use llmware/bling-phi-2-gguf with Docker Model Runner:
docker model run hf.co/llmware/bling-phi-2-gguf
- Lemonade
How to use llmware/bling-phi-2-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/bling-phi-2-gguf
Run and chat with the model
lemonade run user.bling-phi-2-gguf-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Upload config.json
Browse files- config.json +34 -0
config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/phi-2",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"PhiForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"auto_map": {
|
| 7 |
+
"AutoConfig": "configuration_phi.PhiConfig",
|
| 8 |
+
"AutoModelForCausalLM": "modeling_phi.PhiForCausalLM"
|
| 9 |
+
},
|
| 10 |
+
"attention_dropout": 0.0,
|
| 11 |
+
"bos_token_id": 50256,
|
| 12 |
+
"embd_pdrop": 0.0,
|
| 13 |
+
"eos_token_id": 50256,
|
| 14 |
+
"hidden_act": "gelu_new",
|
| 15 |
+
"hidden_size": 2560,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 10240,
|
| 18 |
+
"layer_norm_eps": 1e-05,
|
| 19 |
+
"max_position_embeddings": 2048,
|
| 20 |
+
"model_type": "phi",
|
| 21 |
+
"num_attention_heads": 32,
|
| 22 |
+
"num_hidden_layers": 32,
|
| 23 |
+
"num_key_value_heads": 32,
|
| 24 |
+
"partial_rotary_factor": 0.4,
|
| 25 |
+
"qk_layernorm": false,
|
| 26 |
+
"resid_pdrop": 0.1,
|
| 27 |
+
"rope_scaling": null,
|
| 28 |
+
"rope_theta": 10000.0,
|
| 29 |
+
"tie_word_embeddings": false,
|
| 30 |
+
"torch_dtype": "float16",
|
| 31 |
+
"transformers_version": "4.37.0",
|
| 32 |
+
"use_cache": true,
|
| 33 |
+
"vocab_size": 51200
|
| 34 |
+
}
|