II-Medical
Collection
9 items • Updated • 16
How to use Intelligent-Internet/II-Medical-8B-1706-GGUF with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Intelligent-Internet/II-Medical-8B-1706-GGUF", dtype="auto")How to use Intelligent-Internet/II-Medical-8B-1706-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Intelligent-Internet/II-Medical-8B-1706-GGUF", filename="II-Medical-8B-1706.F16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
How to use Intelligent-Internet/II-Medical-8B-1706-GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
# 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 Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
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 Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
docker model run hf.co/Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
How to use Intelligent-Internet/II-Medical-8B-1706-GGUF with Ollama:
ollama run hf.co/Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
How to use Intelligent-Internet/II-Medical-8B-1706-GGUF with Unsloth Studio:
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 Intelligent-Internet/II-Medical-8B-1706-GGUF to start chatting
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 Intelligent-Internet/II-Medical-8B-1706-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Intelligent-Internet/II-Medical-8B-1706-GGUF to start chatting
How to use Intelligent-Internet/II-Medical-8B-1706-GGUF with Docker Model Runner:
docker model run hf.co/Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
How to use Intelligent-Internet/II-Medical-8B-1706-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Intelligent-Internet/II-Medical-8B-1706-GGUF:Q4_K_M
lemonade run user.II-Medical-8B-1706-GGUF-Q4_K_M
lemonade list
Static quants of https://huggingface.co/Intelligent-Internet/II-Medical-8B-1706
(sorted by size, not necessarily quality)
| Link | Type | Size/GB | Notes |
|---|---|---|---|
| GGUF | Q2_K | 3.4 | |
| GGUF | Q3_K_S | 3.9 | |
| GGUF | Q3_K_M | 4.2 | |
| GGUF | Q3_K_L | 4.5 | |
| GGUF | Q4_K_S | 4.9 | |
| GGUF | Q4_K_M | 5.1 | |
| GGUF | Q5_K_S | 5.8 | |
| GGUF | Q5_K_M | 6.0 | |
| GGUF | Q6_K | 6.8 | |
| GGUF | Q8_0 | 8.8 | |
| GGUF | F16 | 16.5 |
apt-get update
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y
git clone https://github.com/ggml-org/llama.cpp
cmake llama.cpp -B llama.cpp/build \
-DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON -DLLAMA_CURL=ON
cmake --build llama.cpp/build --config Release -j --clean-first --target llama-cli llama-gguf-split
cp llama.cpp/build/bin/llama-* llama.cpp
./llama.cpp/llama-cli \
--model path/to/II-Medical-8B-1706.Q8_0.gguf \
--threads 32 \
--ctx-size 16384 \
--n-gpu-layers 99 \
-ot ".ffn_.*_exps.=CPU" \
--seed 3407 \
--prio 3 \
--temp 0.6 \
--min-p 0.01 \
--top-p 0.9 \
-no-cnv \
--prompt "<|im_start|>user\nI'm feeling unwell. Please help. <|im_end|>\n<|im_start|>assistant\n
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Base model
Intelligent-Internet/II-Medical-8B-1706