स्पीड टेस्टमॉडलबेंचमार्करेंटलरिपोर्टहार्डवेयरडिकोड कैलकुलेटरसंगठनProAPI दस्तावेज़सबमिट करें
भाषा
Actual Computer — Every computer, one endpoint

स्पीड टेस्ट

Inkling-2-Mini

Intel Arc Pro B70 32GB ×2 · custom · own-xpu-runtime inkling2 Mega-Win #53 · UD-IQ4_XS

steveseguinसत्यापित1 दिस॰ 2026सत्यापित रन

डिकोड

236tok/s

प्रीफ़िल

887tok/s

पहले टोकन तक का समय

274ms

कुल

275tok/s

पीक VRAM

—

कॉन्टेक्स्ट लंबाई

64K

KV गहराई

0

बैच आकार

1

समवर्तीता

1

बिजली खपत

—

सत्यापन

सत्यापित रन

Launch command

# Remote endpoint: http://127.0.0.1:18852  servedModel: inkling-2-mini

Theoretical memory ceiling

This mixture-of-experts model doesn't list how many parameters are used per token, so a ceiling can't be estimated.

हार्डवेयर

GPU
Intel Arc Pro B70
Count
2
VRAM
32 GB
OS
Ubuntu 24.04.4 LTS

इंजन

इंजन
custom
Version
own-xpu-runtime inkling2 Mega-Win #53
Build
SYCL/ESIMD/XMX, Level Zero, 2x Arc Pro B70 64GB TP=2 (64 experts/card, 1/2 output split), Mega-Win #53 (XDensePipe WO_G1_COAL_TAIL + XInPipeM1, lock-free AsyncErrState, ApoRtK<8,false>) + lossless DFlash2 Q8_0
Commit
885aa4e7f9
Quant
UD-IQ4_XS

Run config

Context
65,536 tokens
गहराई
0 tokens
Batch size
1
Prompt tokens
242
Prefill tok/s
887.2 tok/s
Output tokens
1024
इसके ज़रिए सबमिट किया गया
lmx v0.1.69 speed-test submit

दर्ज साक्ष्य

प्रॉम्प्ट हैश (SHA-256)
a737db738bd4…
प्रॉम्प्ट नमूना · 826 chars
[LocalMaxxing cache-bust nonce: 3ebee209802240cb14bb74488c3c9719]
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.
आउटपुट नमूना · 3,415 chars
The user wants a small CLI tool in Python called `logtally`. Requirements:
- Reads newline-delimited JSON log records from stdin.
- Each record has `ts` (ISO-8601 string), `level` (one of DEBUG, INFO, WARN, ERROR), `service` (string), optional `latency_ms` (number).
- Prints per service: count of records by level and p50 and p95 of latency_ms (ignore records without latency).
- Malformed lines counted and reported at end, never crash.
- Support `--since <ISO timestamp>` flag that drops earlier records.
- Standard library only.

After code, explain in 2-3 sentences how percentiles computed and why, then list three edge cases a unit test suite should cover.

Let me design:

```python
#!/usr/bin/env python3
import argparse
import json
import sys
from datetime import datetime, timezone

LEVELS = ("DEBUG", "INFO", "WARN", "ERROR")

def parse_ts(s):
    # handle trailing Z
    if isinstance(s, str) and s.endswith(('Z', 'z')):
        s = s[:-1] + '+00:00'
    dt = datetime.fromisoformat(s)
    if dt.tzinfo is None:
        # assume UTC? Or treat naive as UTC
        dt = dt.replace(tzinfo=timezone.utc)
    return dt
```

Note: `datetime.fromisoformat` in Python 3.7-3.10 doesn't parse 'Z', so handle that. In 3.11+ it does. Handle both.

Percentile: sort latencies, use nearest-rank or linear interpolation. Common choice: linear interpolation (like numpy default) or nearest-rank. I'll use linear interpolation ("inclusive" method) — simple and standard. Or nearest-rank. Let me pick linear interpolation:

```python
def percentile(sorted_vals, p):
    if not sorted_vals:
        return None
    if len(sorted_vals) == 1:
        return sorted_vals[0]
    # rank = p/100 * (n - 1)
    rank = (p / 100.0) * (len(sorted_vals) - 1)
    lo = int(rank)
    hi = min(lo + 1, len(sorted_vals) - 1)
    frac = rank - lo
    return sorted_vals[lo] * (1 - frac) + sorted_vals[hi] * frac
```

That's the "linear interpolation" method (same as numpy default 'linear'). Good.

Parsing records:
- Line must be non-empty (skip blank lines? Blank lines — count as malformed? Probably skip empty lines silently or count as malformed. I'll count blank lines as malformed? Hmm. Better: skip truly empty lines (whitespace-only) silently? The requirement says malformed lines must be counted. A blank line is arguably malformed. I'll count blank lines as malformed to be safe? Actually many tools skip blank lines. Let me count them as malformed — simpler and defensible. Or skip. I'll count them as malformed since they're not valid records. Hmm, but trailing newline at end of file would produce a final empty line if we iterate lines... Actually iterating over stdin lines: "a\nb\n" yields "a\n", "b\n" — no trailing empty line. Only if file ends with "\n\n" would there be an empty line. I'll treat whitespace-only lines as malformed.

- JSON parse failure → malformed.
- Must be a dict → malformed.
- `ts` must be present and parseable → malformed.
- `level` must be one of the four → malformed.
- `service` must be a string (non-empty?) → malformed.
- `latency_ms` optional; if present must be a number (int/float, not bool? bool is instance of int — could exclude bools; keep simple: accept int/float, reject bool maybe). If present but not a number → malformed? Or ignore latency? Requirement: "optional latency_ms (number)". If present but wrong type, that's malformed. I'll treat wrong-type latency as malformed.

इस हार्डवेयर पर इस मॉडल के और runs