Image-Text-to-Text
Safetensors
GGUF
English
llama.cpp
test-fixture
tool-calling
ocr
mtp
pruning
conversational
Instructions to use Serveurperso/small-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Serveurperso/small-test 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 Serveurperso/small-test:F16 # Run inference directly in the terminal: llama cli -hf Serveurperso/small-test:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Serveurperso/small-test:F16 # Run inference directly in the terminal: llama cli -hf Serveurperso/small-test:F16
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 Serveurperso/small-test:F16 # Run inference directly in the terminal: ./llama-cli -hf Serveurperso/small-test:F16
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 Serveurperso/small-test:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Serveurperso/small-test:F16
Use Docker
docker model run hf.co/Serveurperso/small-test:F16
- LM Studio
- Jan
- vLLM
How to use Serveurperso/small-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Serveurperso/small-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Serveurperso/small-test", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Serveurperso/small-test:F16
- Ollama
How to use Serveurperso/small-test with Ollama:
ollama run hf.co/Serveurperso/small-test:F16
- Unsloth Desktop
- Pi
How to use Serveurperso/small-test with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Serveurperso/small-test:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Serveurperso/small-test:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Serveurperso/small-test with Docker Model Runner:
docker model run hf.co/Serveurperso/small-test:F16
- Lemonade
How to use Serveurperso/small-test with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Serveurperso/small-test:F16
Run and chat with the model
lemonade run user.small-test-F16
List all available models
lemonade list
- Hermes Agent
How to use Serveurperso/small-test with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Serveurperso/small-test:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Serveurperso/small-test:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Serveurperso/small-test with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Serveurperso/small-test:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Serveurperso/small-test:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
| # tokenize rendered jsonl with the pruned tokenizer into packed arrays (ids, loss mask, doc offsets) | |
| import json, sys, os, glob, numpy as np | |
| from transformers import AutoTokenizer | |
| from multiprocessing import Pool | |
| # usage: tokenize_data.py <model_dir> <out_dir> [jsonl ...], all of data/rendered when none is given | |
| # documents longer than MAX_TOKENS are dropped so that every document fits in one training window | |
| MAX_TOKENS=2046 | |
| model_dir=sys.argv[1]; out_dir=sys.argv[2]; os.makedirs(out_dir,exist_ok=True) | |
| tok=None | |
| def init(): | |
| global tok; tok=AutoTokenizer.from_pretrained(model_dir) | |
| def work(lines): | |
| docs=[json.loads(l) for l in lines] | |
| enc=tok([d["text"] for d in docs],return_offsets_mapping=True,add_special_tokens=False) | |
| out=[] | |
| for d,ids,offs in zip(docs,enc["input_ids"],enc["offset_mapping"]): | |
| mask=np.zeros(len(ids),dtype=np.uint8) | |
| starts=np.array([o[0] for o in offs]); ends=np.array([o[1] for o in offs]) | |
| for a,b in d["spans"]: | |
| mask[(ends>a)&(starts<b)]=1 | |
| if len(ids)<=MAX_TOKENS: out.append((np.array(ids,dtype=np.int32),mask)) | |
| return out | |
| if __name__=="__main__": | |
| with Pool(16,initializer=init) as p: | |
| for f in sys.argv[3:] or sorted(glob.glob("data/rendered/*.jsonl")): | |
| name=os.path.basename(f)[:-6] | |
| lines=[l for l in open(f).read().split("\n") if l] | |
| chunks=[lines[i:i+512] for i in range(0,len(lines),512)] | |
| ids=[];masks=[];offs=[0] | |
| for res in p.imap(work,chunks): | |
| for a,m in res: ids.append(a); masks.append(m); offs.append(offs[-1]+len(a)) | |
| ids=np.concatenate(ids); masks=np.concatenate(masks); offs=np.array(offs,dtype=np.int64) | |
| np.savez(os.path.join(out_dir,name+".npz"),ids=ids,mask=masks,offs=offs) | |
| print(f"{name}: docs {len(offs)-1} tokens {len(ids)} loss-tokens {int(masks.sum())} mean-len {len(ids)/(len(offs)-1):.0f}",flush=True) | |