Run this model with HF Jobs
Run Remek/basal-3.0-mini-GGUF on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Remek/basal-3.0-mini-GGUF. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Remek/basal-3.0-mini-GGUF on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Remek/basal-3.0-mini-GGUF. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use Remek/basal-3.0-mini-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Remek/basal-3.0-mini-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Remek/basal-3.0-mini-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Remek/basal-3.0-mini-GGUF") model = AutoModelForCausalLM.from_pretrained("Remek/basal-3.0-mini-GGUF", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Remek/basal-3.0-mini-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 Remek/basal-3.0-mini-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf Remek/basal-3.0-mini-GGUF:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Remek/basal-3.0-mini-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf Remek/basal-3.0-mini-GGUF:Q5_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Remek/basal-3.0-mini-GGUF:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Remek/basal-3.0-mini-GGUF:Q5_K_M
Use Docker
docker model run hf.co/Remek/basal-3.0-mini-GGUF:Q5_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Remek/basal-3.0-mini-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Remek/basal-3.0-mini-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": "Remek/basal-3.0-mini-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Remek/basal-3.0-mini-GGUF:Q5_K_M
- SGLang
How to use Remek/basal-3.0-mini-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Remek/basal-3.0-mini-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": "Remek/basal-3.0-mini-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
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 "Remek/basal-3.0-mini-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": "Remek/basal-3.0-mini-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Remek/basal-3.0-mini-GGUF with Ollama:
ollama run hf.co/Remek/basal-3.0-mini-GGUF:Q5_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Remek/basal-3.0-mini-GGUF with Docker Model Runner:
docker model run hf.co/Remek/basal-3.0-mini-GGUF:Q5_K_M
- Lemonade
How to use Remek/basal-3.0-mini-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Remek/basal-3.0-mini-GGUF:Q5_K_M
Run and chat with the model
lemonade run user.basal-3.0-mini-GGUF-Q5_K_M
List all available models
lemonade list
- Atomic Chat
basal-3.0-mini-GGUF
GGUF files (Q8_0, Q5_K_M) of the basal-3.0 4.5B model for llama.cpp and Ollama, with the calibration fitted on the Q8_0 file through llama.cpp.
This model is trained to read two ways; llama.cpp and Ollama read it one way. Measured on the 8,560 held-out test decisions, against the two-way model served by basal-serve: Q8_0 accuracy 0.7428 vs 0.8782 (-13.54 pt), Q5_K_M 0.7407 (-13.75 pt); the bf16 model read one way: -13.60 pt, so the cost is the one-way reading, not the quantisation. For full accuracy serve basal-3.0-mini with basal-serve; basal-3.0-mini-one-way-GGUF is a model trained one way.
Agreement with the bf16 model read the same way
| file | agreement | at bf16 margin >= 0.2 | accuracy difference |
|---|---|---|---|
| Q8_0 | 98.7% | 99.9% | +0.06 pt |
| Q5_K_M | 96.9% | 99.2% | -0.15 pt |
Through Ollama (Q8_0, with its own CALIBRATION.ollama.json): agreement 98.7% with the bf16 model read the same way, accuracy +0.14 pt.
Reproducibility: with llama-server's prompt cache on, two identical runs of one GGUF file (measured on this folder's Q8_0 file) agree on 99% of top answers (median |p difference| 0.003); the numbers above are one such run.
Quick start
Download the folder, then serve the Q8_0 file with llama.cpp or Ollama and put basal-serve (engine 3.0.3, installed as on the main card) in front of it:
hf download Remek/basal-3.0-mini-GGUF --local-dir basal-3.0-mini-GGUF
llama-server -m basal-3.0-mini-GGUF/basal-3.0-mini-Q8_0.gguf -c 8192 --grammar 'root ::= [A-Za-z]+' --port 8080
basal-serve --model ./basal-3.0-mini-GGUF --mode llamacpp --llamacpp-url http://127.0.0.1:8080 --port 8000
# or with Ollama:
cd basal-3.0-mini-GGUF && ollama create basal-3.0-mini:q8_0 -f Modelfile.Q8_0 && cd ..
basal-serve --model ./basal-3.0-mini-GGUF --mode ollama --ollama-model basal-3.0-mini:q8_0 --port 8000
--grammar 'root ::= [A-Za-z]+' keeps llama-server from dropping a decision whose most likely next token is an incomplete UTF-8 byte (llama.cpp reports a token's probabilities only once its text is complete). Every basal answer code is one ASCII letter and basal reads the probabilities, so the flag does not change what basal reads.
- Downloads last month
- 73
5-bit
8-bit
Model tree for Remek/basal-3.0-mini-GGUF
Base model
speakleash/Bielik-4.5B-v3