Kiểm tra tốc độ
NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4
GB10 Grace Blackwell 128GB · atlas · main@fdf94c759 · NVFP4
Decode
86.6tok/s
Prefill
604tok/s
Thời gian đến token đầu tiên
398ms
Tổng
104tok/s
VRAM đỉnh
—
Độ dài ngữ cảnh
32K
Độ sâu KV
0
Kích thước batch
1
Đồng thời
1
Công suất tiêu thụ
—
Xác minh
Lượt chạy đã xác minhLệnh khởi chạy
# Remote endpoint: http://127.0.0.1:8889 servedModel: nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4
Theoretical memory ceiling
308.3–312.8 tok/s
273 GB/s memory bandwidth (spec sheet) · 16.50 GB model weights · 16-bit KV cache · 1–240 tokens of context
Includes speculative decoding: 1.72 tokens accepted per model step on average (179.4–182.0 steps/s) · measured 50.4 steps/s
28–28%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4; size from NVFP4 estimate. Hardware source · Open calculator
Phần cứng
- Chip
- GB10 Grace Blackwell
- Bộ nhớ
- 128 GB
- OS
- Ubuntu 24.04
Engine
- Engine
- atlas
- Phiên bản
- main@fdf94c759
- Repository
- https://github.com/Atlas-Inf/atlas
- Build
- gb10 sm_121 release, bs1
- Commit
- fdf94c759e825b5201a55d136072eccaf965399b
- Quant
- NVFP4
- Backend
- cuda
- Spec decode
- bật
- MTP
- bật
Cấu hình chạy
- Context
- 32.768 tokens
- Độ sâu
- 0 tokens
- Kích thước batch
- 1
- Prompt tokens
- 240
- Prefill tok/s
- 604.4 tok/s
- Output tokens
- 1024
Giải mã suy đoán
- Phương pháp
- MTP
- Được chấp nhận mỗi bước
- 1,72 token
- Tỷ lệ chấp nhận
- 72%
- Token nháp
- 596
- Token được chấp nhận
- 428
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 · 3,994 chars
```python
#!/usr/bin/env python3
"""logtally – tally log records from stdin."""
import argparse
import json
import math
import sys
from collections import defaultdict
from datetime import datetime, timezone
LEVELS = {"DEBUG", "INFO", "WARN", "ERROR"}
def parse_ts(ts_str: str) -> datetime:
"""Parse an ISO‑8601 timestamp string to a timezone‑aware datetime."""
# Python 3.7+ can handle most ISO‑8601 strings via fromisoformat,
# but we normalise trailing 'Z' to '+00:00' for safety.
if ts_str.endswith("Z"):
ts_str = ts_str[:-1] + "+00:00"
return datetime.fromisoformat(ts_str)
def percentile(sorted_vals: list[float], p: float) -> float:
"""Compute the *p*‑th percentile using the nearest‑rank method.
The nearest‑rank method is deterministic, requires no interpolation,
and works well with the small per‑service sample sizes typical of
log‑tally use‑cases. It returns a value from the actual data set,
which is intuitive for latency reporting.
"""
if not sorted_vals:
return 0.0
k = int(math.ceil(p / 100.0 * len(sorted_vals)))
k = min(k, len(sorted_vals))
return sorted_vals[k - 1]
def main() -> None:
parser = argparse.ArgumentParser(description="Tally log records from stdin")
parser.add_argument("--since", type=str, default=None,
help="Drop records earlier than this ISO‑8601 timestamp")
args = parser.parse_args()
since_ts = None
if args.since:
since_ts = parse_ts(args.since)
# Per‑service aggregation: {service: {level: count, "latencies": [ms, ...]}}
svc: dict[str, dict] = defaultdict(lambda: {"levels": defaultdict(int), "latencies": []})
malformed = 0
for line in sys.stdin:
line = line.strip()
if not line:
continue
try:
rec = json.loads(line)
except json.JSONDecodeError:
malformed += 1
continue
# Validate required fields
if not isinstance(rec, dict):
malformed += 1
continue
# Timestamp filtering
try:
ts = parse_ts(rec["ts"])
except (KeyError, ValueError, TypeError):
malformed += 1
continue
if since_ts is not None and ts < since_ts:
continue
# Level
level = rec.get("level")
if level not in LEVELS:
# Treat unknown levels as malformed? No – spec says level is one of the four.
# We still count them under whatever string they provide, but the spec
# expects only the four levels. We'll silently ignore unexpected levels.
continue
service = rec.get("service", "unknown")
latency = rec.get("latency_ms")
if isinstance(latency, (int, float)):
svc[service]["latencies"].append(float(latency))
svc[service]["levels"][level] += 1
# Output
# Sort services for deterministic output
for service in sorted(svc.keys()):
data = svc[service]
levels = data["levels"]
latencies = sorted(data["latencies"])
p50 = percentile(latencies, 50)
p95 = percentile(latencies, 95)
# Ensure all four levels appear in the output even if count is 0
for lvl in LEVELS:
count = levels.get(lvl, 0)
if count or lvl in levels: # print if count>0 or level was seen
print(f"{service} {lvl}: {count}")
if p50 or p95:
print(f"{service} p50 latency: {p50:.3f} ms")
print(f"{service} p95 latency: {p95:.3f} ms")
if malformed:
print(f"malformed lines: {malformed}", file=sys.stderr)
if __name__ == "__main__":
main()
```
### Percentile computation explanation
I used the **nearest‑rank method**: the *p*‑th percentile is the value at index `⌈p/100 · N⌉` (1‑based) of the sorted latency list. This approach is deterministic, requires no interpolation, and always returns anCác lượt chạy khác của mô hình này trên phần cứng này
- 85.2tok/satlas · main@fdf94c759 · NVFP4Ngữ cảnh 32K · độ sâu 0 · batch 1Lượt chạy đã xác minhAzeezIsh · 28 thg 9, 2026
- 77.5tok/satlas · main@fdf94c759 · NVFP4Ngữ cảnh 32K · độ sâu 0 · batch 1Lượt chạy đã xác minhAzeezIsh · 28 thg 9, 2026
- 77.3tok/satlas · main@fdf94c759 · NVFP4Ngữ cảnh 32K · độ sâu 0 · batch 1Lượt chạy đã xác minhAzeezIsh · 28 thg 9, 2026
- 77.2tok/satlas · main@fdf94c759 · NVFP4Ngữ cảnh 32K · độ sâu 0 · batch 1Lượt chạy đã xác minhAzeezIsh · 28 thg 9, 2026
- 77.1tok/satlas · main@fdf94c759 · NVFP4Ngữ cảnh 32K · độ sâu 0 · batch 1Lượt chạy đã xác minhAzeezIsh · 28 thg 9, 2026
