Text Generation
Transformers
Safetensors
Polish
English
llama
typed-decisions
decision-making
classification
calibration
polish
conversational
text-generation-inference
Instructions to use Remek/basal-2.0-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Remek/basal-2.0-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Remek/basal-2.0-mini") 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-2.0-mini") model = AutoModelForCausalLM.from_pretrained("Remek/basal-2.0-mini", 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
- vLLM
How to use Remek/basal-2.0-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Remek/basal-2.0-mini" # 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-2.0-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Remek/basal-2.0-mini
- SGLang
How to use Remek/basal-2.0-mini 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-2.0-mini" \ --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-2.0-mini", "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-2.0-mini" \ --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-2.0-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Remek/basal-2.0-mini with Docker Model Runner:
docker model run hf.co/Remek/basal-2.0-mini
basal-2.0 card (private)
Browse files
README.md
CHANGED
|
@@ -143,7 +143,7 @@ basal-1.5 is basal-1.5-mini, the previous release. **Werdykt** rows are the publ
|
|
| 143 |
- **Training.** Trained further from earlier basal checkpoints. The mini is a full fine-tune distilled from basal-2.0-max.
|
| 144 |
- **Calibration.** Temperatures per question type and option-count bucket, fitted on question families the model was
|
| 145 |
not trained on.
|
| 146 |
-
- **Engine v2.0.0.** Compact batching (+19% decisions/s at 16 clients, +17% at 32, +8% at one client) and a prompt-template cache (+20% at 8 clients) (one H100, bf16, each change left out in turn). Engine v2.0.0 schedules long requests (over 2,048 tokens) behind short ones: in a mixed load at 32 clients short requests answer in 0.81 s instead of 1.38 s (p50), and long requests take about 7% longer (p50 1.96 s instead of 1.83 s); `--scheduler off` serves in arrival order.
|
| 147 |
|
| 148 |
## Ports
|
| 149 |
|
|
@@ -182,7 +182,7 @@ One decision = one question, one option order. Hardware is named on every number
|
|
| 182 |
basal-1.5 20.5 decisions/s at 16 clients, c1 p50 14 ms (p95 346 ms) in basal-serve's default mode, as on the public board.
|
| 183 |
Separate pods of the same GPU type.
|
| 184 |
- FP8 package: 103.5 dec/s c16, c1 p50 14 ms (H100); one NVIDIA H100 80GB (cluster node), one option order.
|
| 185 |
-
-
|
| 186 |
- Accuracy rows use `--deterministic`; default minus `--deterministic` accuracy on dev v2: bf16 +0.0000, FP8 +0.0016 (run 1; 32 requests in flight); `--deterministic` itself: bf16 200/200 identical at 16 clients, FP8 200/200 identical at 16 clients.
|
| 187 |
|
| 188 |
**basal-1.5's other configuration.** basal-1.5 also shipped FP8 checkpoints served by vLLM. On one RunPod H100 (median of
|
|
|
|
| 143 |
- **Training.** Trained further from earlier basal checkpoints. The mini is a full fine-tune distilled from basal-2.0-max.
|
| 144 |
- **Calibration.** Temperatures per question type and option-count bucket, fitted on question families the model was
|
| 145 |
not trained on.
|
| 146 |
+
- **Engine v2.0.0.** Compact batching (+19% decisions/s at 16 clients, +17% at 32, +8% at one client) and a prompt-template cache (+20% at 8 clients) (one H100, bf16, each change left out in turn). They need FlashAttention 3 (Hopper): the Werdykt rows on this card ran with FlashAttention 3; the release check, the port checks, the FP8 speed and the calibration ran with FlashAttention 2, without them. Engine v2.0.0 schedules long requests (over 2,048 tokens) behind short ones: in a mixed load at 32 clients short requests answer in 0.81 s instead of 1.38 s (p50), and long requests take about 7% longer (p50 1.96 s instead of 1.83 s); `--scheduler off` serves in arrival order.
|
| 147 |
|
| 148 |
## Ports
|
| 149 |
|
|
|
|
| 182 |
basal-1.5 20.5 decisions/s at 16 clients, c1 p50 14 ms (p95 346 ms) in basal-serve's default mode, as on the public board.
|
| 183 |
Separate pods of the same GPU type.
|
| 184 |
- FP8 package: 103.5 dec/s c16, c1 p50 14 ms (H100); one NVIDIA H100 80GB (cluster node), one option order.
|
| 185 |
+
- Measured setup: the Werdykt rows (accuracy and the speed pass) ran on the Werdykt pods with FlashAttention 3 installed, which the engine needs for compact rows and the template prefix (both engine defaults); the release check, the port checks, the FP8 speed and the calibration fits ran with FlashAttention 2, so compact rows and the template prefix were off there. FP8 keeps FlashAttention 2 unless `--attn fa3`.
|
| 186 |
- Accuracy rows use `--deterministic`; default minus `--deterministic` accuracy on dev v2: bf16 +0.0000, FP8 +0.0016 (run 1; 32 requests in flight); `--deterministic` itself: bf16 200/200 identical at 16 clients, FP8 200/200 identical at 16 clients.
|
| 187 |
|
| 188 |
**basal-1.5's other configuration.** basal-1.5 also shipped FP8 checkpoints served by vLLM. On one RunPod H100 (median of
|