PocketDoc/Dans-Logicmaxx-SAT-AP
Viewer • Updated • 6.25k • 129
How to use Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf", device_map="auto")How to use Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS # Run inference directly in the terminal: llama cli -hf Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS # Run inference directly in the terminal: llama cli -hf Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
# 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 Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
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 Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
docker model run hf.co/Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
How to use Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
How to use Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf with Ollama:
ollama run hf.co/Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
How to use Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf with Docker Model Runner:
docker model run hf.co/Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
How to use Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf:IQ4_XS
lemonade run user.PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf-IQ4_XS
lemonade list
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf", device_map="auto")4-bit
Base model
mistralai/Mistral-Small-24B-Base-2501
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Disya/PocketDoc-Dans-PersonalityEngine-V1.2.0-24b-IQ3_S-IQ4_XS-gguf") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)