Kiểm tra tốc độ
Qwen3.8-27B
RTX 3090 24GB ×2 · custom · QEngine 1.5.0 · INT8
Ẩn danh22 thg 11, 2026
Decode
257tok/s
Prefill
1.9ktok/s
Thời gian đến token đầu tiên
143ms
Tổng
251tok/s
VRAM đỉnh
45,9GB
Độ dài ngữ cảnh
256K
Độ sâu KV
0
Kích thước batch
1
Đồng thời
1
Công suất tiêu thụ
553W
Xác minh
Chưa xác minh — kết quả thử nghiệm
Lượt chạy đã xác minh dùng prompt kiểm thử chuẩn và ghi lại đủ dữ liệu để kiểm tra kết quả.
- This run used speculative decoding but did not report how many draft tokens were proposed and accepted.
Lệnh khởi chạy
QEngine 1.5.0 dual-GPU: QE_MODEL=Qwen3.8-27B-INT8 QE_DFLASH=Qwen3.8-27B-DFlash2 (262K, 15 slots)
Theoretical memory ceiling
Can't estimate a ceiling for speculative decoding runs unless the run reports how many draft tokens were accepted.
Phần cứng
- GPU
- RTX 3090
- Số lượng
- 2
- VRAM
- 24 GB
- OS
- Linux
Engine
- Engine
- custom
- Phiên bản
- QEngine 1.5.0
- Repository
- https://github.com/bpx03/QEngine
- Build
- ghcr.io/bpx03/qengine@sha256:8a7bf3459c3e405d4e4a0c067cedd8c5a646f751baca55bacaceb792667c2f9b
- Commit
- d091eaee48
- Quant
- INT8
- Backend
- cuda
- TP
- 2
- Spec decode
- bật
Cấu hình chạy
- Context
- 262.144 tokens
- Độ sâu
- 0 tokens
- Kích thước batch
- 1
- Prompt tokens
- 269
- Prefill tok/s
- 1,879.2 tok/s
- Công suất tiêu thụ
- 553 W (277 + 276 W)
- Output tokens
- 1536
- Gửi bằng
- custom script (stdlib) via OpenAI-compatible router
- Ghi chú
- QEngine 1.5.0, Qwen3.8-27B INT8 (QEngine layout), DFlash2 W4A16 drafter. 2x RTX 3090 PCIe, no NVLink, 300 W cap. 262K context, 15 slots. Temp 0, thinking default. Median of 3 runs after warm-up. Speculation stats not exposed, so unverified.
Bằng chứng đã ghi
- Mã băm prompt (SHA-256)
- a737db738bd4…
Mẫu prompt · 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.
Mẫu đầu ra · 4,000 chars
Let me design a small Python CLI tool called `logtally` that:
1. Reads NDJSON from stdin
2. Each record: `ts` (ISO-8601), `level` (DEBUG/INFO/WARN/ERROR), `service` (string), optional `latency_ms` (number)
3. Per service: count by level, p50 and p95 of latency_ms
4. Malformed lines counted and reported at end, never crash
5. `--since <ISO timestamp>` flag to filter
6. Standard library only
For percentiles, I'll use the "nearest rank" method or linear interpolation. Let me think about which is best:
- Nearest rank: p = ceil(P/100 * N), then take the value at that rank (1-indexed). Simple, deterministic.
- Linear interpolation (like numpy's default): more common in practice, gives smoother results.
I'll go with linear interpolation since it's what most people expect from "p50" and "p95" and it's what numpy does by default. The formula: rank = (P/100) * (N-1), then interpolate between floor(rank) and ceil(rank).
Actually, let me reconsider. For a small tool, nearest rank is simpler and easier to explain. But linear interpolation is more standard. I'll use linear interpolation and explain it.
Let me structure the code:
```python
#!/usr/bin/env python3
"""logtally - tally log records from NDJSON stdin."""
import argparse
import json
import sys
from datetime import datetime, timezone
from collections import defaultdict
VALID_LEVELS = {"DEBUG", "INFO", "WARN", "ERROR"}
def parse_args():
parser = argparse.ArgumentParser(prog="logtally", description="Tally NDJSON log records.")
parser.add_argument("--since", type=str, default=None,
help="Drop records with ts earlier than this ISO-8601 timestamp.")
return parser.parse_args()
def parse_ts(ts_str):
"""Parse an ISO-8601 timestamp string to a datetime."""
# Handle 'Z' suffix
if ts_str.endswith('Z'):
ts_str = ts_str[:-1] + '+00:00'
return datetime.fromisoformat(ts_str)
def percentile(sorted_vals, p):
"""Compute the p-th percentile using linear interpolation."""
if not sorted_vals:
return None
if len(sorted_vals) == 1:
return sorted_vals[0]
rank = (p / 100.0) * (len(sorted_vals) - 1)
low = int(rank)
high = low + 1
if high >= len(sorted_vals):
return sorted_vals[-1]
frac = rank - low
return sorted_vals[low] + frac * (sorted_vals[high] - sorted_vals[low])
def main():
args = parse_args()
since_dt = None
if args.since:
try:
since_dt = parse_ts(args.since)
except (ValueError, TypeError):
print(f"error: invalid --since timestamp: {args.since}", file=sys.stderr)
sys.exit(1)
# Per-service data
level_counts = defaultdict(lambda: defaultdict(int))
latencies = defaultdict(list)
malformed = 0
for line in sys.stdin:
line = line.strip()
if not line:
continue
try:
record = json.loads(line)
# Validate required fields
ts = record["ts"]
level = record["level"]
service = record["service"]
if level not in VALID_LEVELS:
raise ValueError(f"invalid level: {level}")
# Parse timestamp
record_dt = parse_ts(ts)
# Apply --since filter
if since_dt is not None and record_dt < since_dt:
continue
# Count level
level_counts[service][level] += 1
# Collect latency
if "latency_ms" in record and record["latency_ms"] is not None:
lat = record["latency_ms"]
if not isinstance(lat, (int, float)):
raise ValueError(f"latency_ms is not a number: {lat}")
latencies[service].append(lat)
except (json.JSONDecodeError, KeyError, ValueError, TypeError) as e:
malformed += 1
# Output
services = sorted(level_counts.keysCác lượt chạy khác của mô hình này trên phần cứng này
- 188tok/scustom · QEngine 1.5.0 · INT8Ngữ cảnh 256K · độ sâu 0 · batch 1Ẩn danh · 22 thg 11, 2026
- 135tok/svllm · v0.27.1 · INT4Ngữ cảnh 256K · độ sâu 0 · batch 1AlphaGrit · 17 thg 8, 2026
- 113tok/svllm · W4A16Ngữ cảnh 64K · độ sâu 0 · batch 1aavci-dev · 19 thg 8, 2026
- 72.8tok/svllm · v0.27.1 · INT4Ngữ cảnh 256K · độ sâu 0 · batch 1AlphaGrit · 17 thg 8, 2026
- 72.7tok/svllm · v0.27.1 · INT4Ngữ cảnh 256K · độ sâu 0 · batch 1AlphaGrit · 17 thg 8, 2026
- 53.0tok/sllama.cpp · UD-Q6_K_XLNgữ cảnh 2K · độ sâu 0 · batch 1GuilhermeCBR · 15 thg 8, 2026
