Test szybkości
Qwen3-0.6B
RTX 3060 12GB · vllm · v0.32.0 · BF16
Dekodowanie
204tok/s
Prefill
6.7ktok/s
Czas do pierwszego tokenu
34ms
Łącznie
290tok/s
Szczytowe VRAM
10,9GB
Długość kontekstu
40K
Głębokość KV
0
Rozmiar partii
1
Współbieżność
1
Pobór mocy
147W
Weryfikacja
Zweryfikowany przebiegKomenda uruchomienia
vllm serve Qwen/Qwen3-0.6B --max-model-len 40960 --gpu-memory-utilization 0.94 --max-num-seqs 128 --enable-prefix-caching --trust-remote-code
Theoretical memory ceiling
177.7–180.0 tok/s
360 GB/s memory bandwidth (spec sheet) · 2.00 GB model weights · 16-bit KV cache · 1–226 tokens of context
113–115%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from Qwen/Qwen3-0.6B; size from BF16 estimate. Hardware source · Open calculator
Sprzęt
- GPU
- RTX 3060
- Liczba
- 1
- VRAM
- 12 GB
- OS
- Ubuntu 24.04.5
Silnik
- Silnik
- vllm
- Wersja
- 0.32.0
- Repository
- https://github.com/vllm-project/vl…
- Build
- vllm/vllm-openai:v0.32.0-x86_64
- Quant
- BF16
- Backend
- cuda
- TP
- 1
- KV cache
- auto
- GPU mem util
- 0.94
- Prefix caching
- tak
- Max running seqs
- 128
Konfiguracja uruchomienia
- Kontekst
- 40 960 tokenów
- Głębokość
- 0 tokenów
- Rozmiar batcha
- 1
- Tokeny promptu
- 226
- Prefill tok/s
- 6,686.7 tok/s
- Pobór mocy
- 147 W
- Tokeny wyjściowe
- 512
- Notatki
- Untuned out-of-the-box baseline (same server config as our LMX matrix for this model). Spec decode: none. KV cache: auto (bf16). 1x RTX 3060 12GB, stock 170 W limit, PCIe Gen3 x16 | Intel Xeon E5-2680 v4 14C | 32 GB DDR4-2400 | Ubuntu 24.04.5, NVIDIA driver 580.178.04. Method: LocalMaxxing canonical prompt code-v1, batch 1, streaming, temperature 0, 512 output tokens (ignore_eos), cache-bust nonce so every prefill is cold, thinking off. Median of 5 runs (range 203.3-204.7 tok/s). tokSOut = (completion - 1) / time after first token.
Zapisane dowody
- Hash promptu (SHA-256)
- a737db738bd4…
Próbka promptu · 760 chars
Implement a small command-line tool in Python called `logtally`. Requirements: - It reads newline-delimited JSON log records from stdin. Each record has `ts` (ISO-8601 string), `level` (one of DEBUG, INFO, WARN, ERROR), `service` (string), and optional `latency_ms` (number). - It prints, per service, the count of records by level and the p50 and p95 of `latency_ms` (ignore records without latency). - Malformed lines must be counted and reported at the end, never crash the program. - Support a `--since <ISO timestamp>` flag that drops earlier records. - Use only the standard library. After the code, explain in two or three sentences how you computed percentiles and why you chose that method, then list three edge cases a unit test suite should cover.
Próbka odpowiedzi · 1,858 chars
Here's a Python implementation of the `logtally` command-line tool:
```python
import sys
import json
import time
import statistics
import numpy as np
def parse_log_lines(log_lines):
"""Parse log lines into a list of dictionaries."""
return [json.loads(line) for line in log_lines]
def process_log(log_entries):
"""Process log entries to compute p50 and p95 of latency."""
latency_ms = []
for entry in log_entries:
if entry.get('latency_ms'):
latency_ms.append(entry['latency_ms'])
if not latency_ms:
return {'count': 0, 'p50': 0, 'p95': 0}
p50 = np.percentile(latency_ms, 50)
p95 = np.percentile(latency_ms, 95)
return {'count': len(latency_ms), 'p50': p50, 'p95': p95}
def main():
# Read input from stdin
log_lines = [line.rstrip('\n') for line in sys.stdin]
# Process each line
processed = []
for line in log_lines:
try:
entry = json.loads(line)
if 'ts' in entry and 'level' in entry and 'service' in entry:
processed.append(entry)
except json.JSONDecodeError:
# Malformed line, count it
pass
# Process per service
services = {}
for entry in processed:
service = entry.get('service')
if service not in services:
services[service] = {'count': 0, 'p50': 0, 'p95': 0}
services[service]['count'] += 1
if 'latency_ms' in entry:
latency = entry['latency_ms']
if latency:
services[service]['p50'] = statistics.p50(latency)
services[service]['p95'] = statistics.p95(latency)
# Print results
print(f"Service: {services}")
# Print p50 and p95
print(f"p50: {services['p50']:.2f} ms")
print(f"p95: {services['p95']:.2f} ms")
if __name__ == "__main