2026-06-09

5 articles

AI 博客问题挑战

By dimlau · 2026-06-09T07:51:24Z · KAIX.IN · Original

我订阅的几个博客都参与了这个问答,我也来参与参与。

  1. How was your first experience with AI models?
  2. Do you use AI or are you completely against using it?
  3. Do you have any preference among different models, for example Claude vs ChatGPT? If yes, how do you choose?
  4. What aspect of AI models do you like and what do you not like?
  5. How do you feel about AI generated images? Does it annoy you if someone use them in a blog post?
  6. Internet is flooded with AI slop now, full of generated text, images, audio and videos. How do you filter it from authentic human creation? Do you have a strategy?
  7. Are you hopeful for a better future with A.I. or a dystopian one?
    ai blog question challenge

1. 第一次体验 AI 模型的感受

说实话我还记得当时除了新奇之外就只有「不过如此」的感觉,毕竟如果妳关注这个领域大概已经知道半个世纪前就能用程序写情书了,更自然一点的对话而已,我倒没有太多被震撼,但是对怎么实现肯定是充满了好奇。分词啊、Token 啊、概率啊……等等等等,都是过了好久之后才大致有了些了解。然后,我更习惯叫它 LLM(大语言模型)而不是 AI,不过原问题如此,我就保留原文用法吧。

2. 会用 AI 还是完全反对使用它

我在特定领域里,疯狂使用。我把模型输出的每一行代码都仔细看过,确保自己读懂,并且坚持把思路先自己写一些伪代码出来再让模型完全依照我的思路做修改,以及把一些机械劳动帮我完成。当然也不排除省钱的缘故,但整体上看,我觉得这是学习使用工具的过程。另一方面,作为一个懒散的人,我最近才在模型的提示下知道一个概念叫四象限工作法,然后在模型协助下写了一个践行这套工作法的工具,通过电子邮件来实现愿景、目标、待办事项的管理……我想不出在这些领域不用工具的理由。

至于其他领域,我之前写过这里绝对不会出现 AI 生成的文章,也要多与人类交流。

3. 有模型偏好吗,基于什么选择

有也没有。有是指,特定任务特定模型,比如刚提到的个人工具我用 Gemini,代码指导我用 Claude Opus;没有是指,用 Gemini 完成工具任务是因为对在中国生活的人来说 Google 付费流程相对稳妥,用 Opus 指导代码是因为它额度恰好逼我必须多自己动手才够用。我暂时不觉得模型间的差异足以产生路径甚至情感依赖。

4. 喜欢和不喜欢 AI 模型的哪些部分

对模型本身不产生情绪。模型突然主动说出我不知道的信息时会惊喜。

5. 厌烦别人在博客文章里使用 AI 生成的图片吗,看法如何

我反省。文章内部倒还没用过 AI 生成的图片,但是之前常用 AI 生成缩略图 Open Graph Image。想法倒不是「用更形象的方式展示文章意涵」,而是,既然是分享时用的缩略图,每篇文章都有变化且多少和文章内容相关,就更活泼一些。现在反省的原因是,我突然觉得如果全世界所有文章都是同一风格的插画缩略图,可就更「不活泼」了。别人博客里如果出现生成的图片,我没有特别的情绪,信息还是噪音,和怎么生成的没关系。

6. 有什么策略识别和区分真人创作和充斥互联网的 AI 生成的文字、图像、影音

不区分,垃圾就是垃圾,我自己也经常产出垃圾,只能多从现实中、生活中、真正美的事物和作品中找灵感。不求惊世骇俗,但要追求那种感受真诚,传递真诚的能力。当然,这个其实还挺难的,我常常自问,为什么写不出真诚的东西呢,不是那种糗事烂事往外倒的真诚,而是让人感受内心的真诚。或许还是没有与身边的世界好好交流吧。说到这里想起前几天在上班路上突然想到,十几年前,我走路是目视前方的,时常会与别人目光相接,从难为情地游移视线到坦然微笑,我经历了那样的成长。但不知什么时候起,我好像看脚下居多了,或者越过近景把目光聚焦在远处虚空。是不是可以理解成,看脚下是实用主义,看虚空是形而上,而在两者之间发生的,是人世间?

7. 对 AI 带来的未来保持乐观,还是担忧导致反乌托邦

乐观与否和 AI 无关,我是乐观的,所以觉得 AI 不是科幻,反乌托邦是科幻。回到 AI 带来的未来这个话题上的话,作为中国人可能更有理由担忧科幻作品成为现实,因为 AI 作为工具能做的事情比以往任何时候都更多、更细致、滴水不漏。但是从另个角度来说,我反而感觉操控 AI 的「性格」堕入邪恶,比操控人类更难;而且既然是工具,总会出现与之匹敌的另一方吧。或许这就是乐观者天真的一面,我感觉无论 AI 如何,始终会有人读纸质书,看四时光景,与人目光相接,活在人世间。

fin.

激赏! 来信。

From GPU to Token: The 8-Layer Observability Stack for AI Infrastructure

By Jimmy Song · 2026-06-09T03:31:16Z · 云原生 · Original

GPU utilization is not the destination. Token cost is the true North Star metric for AI infrastructure.

For the past few years, one of the hottest topics in AI infrastructure has been GPU scheduling. Whether it’s Kubernetes, Volcano, Kueue, or HAMi, they all fundamentally solve the same problem — how to make expensive and scarce GPUs more efficiently utilized.

But as more enterprises begin running production-grade Large Language Model (LLM) services, a new phenomenon has emerged: GPU utilization is high, but users still complain about slow response times; GPU clusters are near full capacity, but business throughput hasn’t grown proportionally; VRAM and compute still have headroom, yet TTFT (Time To First Token) continues to degrade. This reveals a fundamental truth — GPU utilization alone is no longer sufficient to describe the real operational state of modern AI systems.

For traditional cloud-native applications, we focus on CPU, memory, network, and disk. For AI systems, however, we also need to care about: whether GPUs are truly performing useful computation, whether NCCL (NVIDIA Collective Communications Library) communication has become a bottleneck, whether Kubernetes has correctly allocated resources, whether KV Cache is exhausted, whether Token latency meets user experience requirements, and whether the cost per Token is reasonable. In other words, the observability target for AI infrastructure has expanded from the GPU to the entire inference chain.

Recently, while participating in the development of an industry standard — “Technical Capability Requirements for Computing Power Efficiency Enhancement: Heterogeneous Computing Services” organized by the China Academy of Information and Communications Technology (CAICT) — a core question came up repeatedly in discussions with experts: How do GPU and Token relate? How do we measure GPU output through Tokens? The standard introduces the concept of “Token as a Service,” shifting the unit of measurement for computing services from traditional GPU hours to Tokens, yet a mature practical framework for building a complete observability chain from hardware to Token was still missing.

Around the same time, I came across a technical article on GPU and LLM observability (GPU & LLM Inference Observability — Layer-by-Layer Coverage) that proposed a constructive approach: decomposing the AI system into eight observability layers from GPU hardware to business cost, which neatly fills the observability gap between GPU and Token. This article reorganizes and interprets the original content, removes product-specific implementation details and vendor promotion, and extends the model by incorporating Kubernetes, HAMi, and modern LLM inference architectures.

This article aims to answer one question:

After we’ve solved GPU scheduling, what should we observe next?

8-Layer Observability Architecture Overview

The diagram below shows the eight observability layers from GPU hardware to business cost, each corresponding to different observability targets and areas of responsibility:

Figure 1: 8-Layer AI Infrastructure Observability Architecture Figure 1: 8-Layer AI Infrastructure Observability Architecture

Original image source GitHub.

Each layer collects data through the OTel Collector and routes it to metrics, tracing, and logging backends, forming a complete observability loop. Let’s examine each layer in detail.

L1 GPU Hardware Layer

This layer focuses on the GPU itself. The core question is: Is the GPU running healthy?

The table below lists the key observability metrics for the GPU hardware layer:

Category Key Metrics
Compute GPU Utilization, SM Occupancy, Tensor Core Activity
Memory VRAM Usage, HBM Bandwidth
Interconnect NVLink Throughput, PCIe Throughput
Reliability ECC Error, XID Error
Thermal Temperature, Power Draw, Throttle Reason
Table 1: L1 GPU Hardware Layer Key Metrics

Many teams only track GPU Utilization, but there’s a critical distinction — GPU Utilization ≠ GPU Efficiency. Two GPUs might both show 90% Utilization: one executing Tensor Core operations, the other waiting for memory access. The actual performance can be vastly different. Therefore, SM (Streaming Multiprocessor) Occupancy and Tensor Core Activity are often more valuable than Utilization alone.

L2 CUDA Runtime and Communication Layer

For distributed training, GPU computation is usually not the bottleneck — communication is. The core question at this layer is: Is the GPU computing, or waiting for other GPUs?

The table below lists the key metrics for the CUDA runtime and communication layer:

Category Metrics
NCCL AllReduce, AllGather, ReduceScatter
Communication Duration, Bandwidth
Kernel Execution Time, P99 Duration
Straggler Rank Skew
Table 2: L2 CUDA Runtime and Communication Layer Key Metrics

In large-scale training scenarios, a single slow node can drag down the entire training job. By monitoring NCCL communication Duration and Bandwidth, as well as Skew between Ranks, you can quickly pinpoint communication bottlenecks.

L3 Host / OS Layer

Many GPU problems are ultimately not GPU problems. When GPU utilization is abnormal, the root cause may lie in the host’s CPU, memory, disk, or network.

The table below lists the key metrics at the host level:

Category Metrics
CPU Utilization, IO Wait
Memory Usage, Swap
Disk Throughput, Latency
Network Retransmit, Bandwidth
Process RSS, Thread Count
Table 3: L3 Host / OS Layer Key Metrics

A common misconception: when GPU utilization is low, the first reaction is that the GPU isn’t fast enough. In reality, the GPU is often waiting for data — a slow DataLoader, insufficient CPU, network congestion, or inadequate storage performance can all leave the GPU idle.

L4 Kubernetes and Scheduling Layer

This layer is the core of cloud-native AI infrastructure. The question to answer is: Who owns the GPU? You need to know which Pod is using the GPU, which Namespace consumes the most resources, which team has the highest cost, and which model occupies the most VRAM.

The table below lists the key observability dimensions at the scheduling layer:

Category Key Attributes
Ownership Pod, Container
Workload Deployment, Job
Organization Namespace, Team
Scheduling GPU Sharing, GPU Partition
Topology Node, AZ, Region
Table 4: L4 Kubernetes and Scheduling Layer Key Dimensions

Projects like HAMi, Volcano, and Kueue primarily operate at this layer. HAMi solves core problems like GPU Sharing, GPU Partitioning, and heterogeneous GPU scheduling, while observability answers the question: Has scheduling actually improved resource utilization? The observability data at this layer is the foundation for resource auditing and cost allocation.

L5 Training Runtime Layer

The training phase requires monitoring the model’s runtime state. The table below lists the key metrics for the training runtime:

Category Metrics
Efficiency MFU, TFLOPS, Step Time
Gradient Norm, NaN, Inf
Loss Training Loss
Data DataLoader Wait
Checkpoint Save Time, Restore Time
Table 5: L5 Training Runtime Key Metrics

The most important metric here is MFU (Model FLOPs Utilization). Many training jobs show high GPU utilization but only 30% MFU, meaning a significant amount of GPU time is not being converted into actual training progress. MFU is the golden metric for measuring training efficiency — it directly reflects the ratio of hardware compute converted into effective training computation.

L6 Inference Engine Layer

This is the most critical layer in production environments and the one seeing the fastest growth in industry attention. The table below lists the core metrics for inference engines:

Metric Description
TTFT Time To First Token
ITL Inter Token Latency
Queue Wait Request queuing time
Throughput Token throughput
Batch Size Batch processing efficiency
KV Cache Usage KV Cache utilization
Table 6: L6 Inference Engine Key Metrics

Many teams still focus solely on GPU Utilization, but the true capacity metric for inference systems is often KV Cache (Key-Value Cache) Utilization.

Why KV Cache Matters More Than GPU Utilization

In modern LLM inference systems, GPU compute usually has headroom, but KV Cache often runs out first. A typical scenario: GPU utilization is only 60%, KV Cache is at 95%, new requests start queuing, and TTFT spikes rapidly.

For inference systems, KV Cache is more akin to a database’s Buffer Pool — it often determines the capacity ceiling of the entire system. When KV Cache approaches saturation, the system is forced to perform Eviction, leading to context loss, request retries, and ultimately latency spikes and throughput drops.

L7 GenAI API Layer

With the development of OpenTelemetry GenAI Semantic Conventions, the industry is converging on unified AI observability standards. The table below lists the key metrics at the API layer:

Metric Description
Input Tokens Input token count
Output Tokens Output token count
Request Duration Request latency
TTFT First Token latency
Token Throughput Token throughput
Table 7: L7 GenAI API Layer Key Metrics

This layer marks the shift from infrastructure-centric to application-centric observability. API-layer metrics directly face end users and business systems, serving as the core data source for SLA/SLO quality assessment.

L8 Business and Cost Layer

Ultimately, enterprises don’t care about GPU utilization — they care about: Is the GPU creating value? The table below lists the core metrics for the business and cost layer:

Metric Description
Cost per GPU Hour GPU hourly cost
Cost per Token Token cost
Cost per Request Request cost
Idle GPU Cost Idle resource cost
Tokens per Watt Inference efficiency
Table 8: L8 Business and Cost Layer Key Metrics

The core competitive metric for future AI infrastructure may not be GPU Utilization, but rather Cost per Useful Token — the comprehensive cost of producing one useful Token. This metric unifies hardware cost, energy consumption, inference efficiency, and business value into a single measurement framework.

Cross-Layer Troubleshooting

Real production issues often span multiple layers. The table below lists common cross-layer failure symptoms and their potential causes:

Symptom Possible Causes
TTFT Increase CPU IO Wait, Queue Depth, KV Cache Pressure
Throughput Drop NCCL, Batch Size, Network
Latency Spike KV Cache Eviction
OOM Insufficient VRAM, Oversized Batch
Training Stall NCCL Straggler
Table 9: Cross-Layer Troubleshooting Reference

Modern AI operations are evolving from single-point monitoring to cross-layer observability. The root cause of a single-layer metric anomaly often lies in another layer. Only by building cross-layer correlation capabilities can teams achieve rapid root-cause identification and precise troubleshooting.

From GPU Control Plane to AI Observability Plane

Over the past few years, the industry has focused primarily on projects like Kubernetes Scheduler, Volcano, Kueue, and HAMi, solving the problem of how to allocate GPUs. In the coming years, the industry will start asking whether GPUs are truly generating value , leading to the formation of a new AI infrastructure technology stack:

GPU Hardware
↓
Kubernetes Control Plane
↓
Inference Runtime
↓
Observability Plane
↓
Optimization Plane

GPU scheduling determines how resources are allocated. Observability determines whether resources are being used correctly. Together, they form the next-generation AI Infrastructure Stack. The evolution from GPU Control Plane to AI Observability Plane marks a new era where AI infrastructure transitions from “resource management” to “value management.”

Summary

AI infrastructure observability is undergoing a fundamental paradigm shift. We used to look only at GPU utilization; now we need to build a complete observability system across eight layers — from GPU hardware, CUDA runtime, host OS, Kubernetes scheduling, training runtime, inference engine, GenAI API, to business cost.

Key takeaways:

  • L1-L3 focus on hardware and systems : GPU health, CUDA communication efficiency, and host resource adequacy
  • L4 focuses on resource allocation : Kubernetes scheduling and GPU sharing, with tools like HAMi solving allocation problems
  • L5-L6 focus on model runtime : Training efficiency (MFU) and inference capacity (KV Cache) are the core metrics
  • L7-L8 focus on business value : From Token throughput to cost per Token, ultimately measuring whether GPUs are creating value

GPU scheduling is the starting point for AI infrastructure, but not the end goal. The 8-layer observability stack from GPU to Token is the critical closed loop that ensures AI infrastructure truly delivers business value.

References

Simple Memo

By Eana Hufwe · 2026-06-09T18:42:40Z · 1A23 Studio · Original

Simple Memo for Wear OS keeps your essential information just a glance away on your smartwatch. Perfect for remembering gym locker combinations, parking spot numbers, temporary door codes, room numbers, or meeting PINs.

Get it on Google Play Keep information at a glance Choose your preferred keyboad options Track your edit history

This lightweight app lets you quickly note down and edit a single piece of important information right on your Wear OS watch. Access your memo instantly through the app, a customizable watch face complication, or a convenient Wear OS tile.

Key Features

  • Flexible keyboard options : Choose between number pad, full text, email, and more input methods
  • Quick access tile : View your memo directly from your watch face swipe
  • Watch face complications : Keep your note visible at all times
  • Edit history : Track your last 10 changes

The perfect companion for those moments when you need to remember just one crucial detail.

If you have any bug report or feedback, feel free to share it on GitHub.

Simple Memo appeared first on 1A23 Studio.

基于万形做的一些小玩意儿

By 仲平 · 2026-06-09T16:00:00Z · 7Wate`s Blog · Original

把自己的审美沉淀成一套工具之后,又做了更多开发,也尝试做了一个 MVP,但后续发现所有的想法和功能几乎与 Claude Design 完全重叠,认为继续做下去的意义不大了,就放弃了。

不过,出于实际需求,基于万形还是做了两个小玩意儿。


文心编辑器 #

文心编辑器

最近在公众号发了一些内容,但 Markdown 格式无法直接复制到微信公众号。现有的公众号编辑器我也觉得不好用,于是 vibe 了一个基于文心设计规范的公众号编辑器。

🔗 文心编辑器


Fixit #

干掉它

借鉴 Claude Design 的批注功能,通过 Chrome 插件独立出来。现在基于万形开发网页时,可以在浏览器上用 Fixit 快速标注,然后生成工单发给 AI——工单这个词真的是……

核心功能成熟稳定后会发布到 Chrome 插件商店,目前先以开发者模式本地加载。

🔗 GitHub - Fixit


后记 #

Claude 又发布了 Fable 5,AI 发展真的太快了。很多时候灵光乍现的好想法,结果发现已经有人做的差不多了。目前 AI 这种意图编译的效率,在顶级产品经理手中,都不能说是降维打击了——泯灭,弹指一挥间。

最近在思考 AI 应用开发的方法论或者说哲思,但还没构思好。

So,就这样。

通过字幕总结YouTube视频内容

By 依云 · 2026-06-09T09:11:54Z · 依云's Blog · Original

本文来自依云's Blog,转载请注明。

现在YouTube首页的视频推荐越来越差了,好多标题党、clickbait,故意把讨论的主题藏起来。经常我点进去看了好久,才发现原来并没有讨论什么我之前不知道信息,又或者讨论的话题我完全不感兴趣。再不就是把我想知道的信息藏到不知道哪个片段里。虽然我有GlobalSpeed扩展可以依内容信息密度来方便地调整播放速度,但是调太快(超过2x)就听不清啦。总之是好多视频点开看之前十分吸引人,但看完或者看一半时就想骂人、点踩退出,十分浪费时间。

正好最近在尝试Gemini API,于是灵光一现,写了个脚本,使用yt-dlp下载视频字幕,然后调用Gemini API来总结内容。

#!/usr/bin/python3

import sys
import json
import subprocess
import tempfile
from pathlib import Path

import httpx

GEMINI_KEY = 'YOUR GEMINI KEY HERE'
URL = 'https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-lite:streamGenerateContent?alt=sse'
PROMPT = '根据以下字幕文本总结视频内容。总结结果中请不要包含任何赞助商推广信息。'

def main(url, sublang):
  with tempfile.TemporaryDirectory() as d:
    subprocess.run([
      'yt-dlp', '--sub-langs', sublang, '--write-subs', '--write-auto-subs', '--skip-download',
      url,
    ],
      cwd=d,
      check=True,
    )

    p = Path(d)
    try:
      file = tuple(p.iterdir())[0]
    except IndexError:
      sys.exit('No subtitles.')

    for _ in range(2):
      try:
        do_request(file)
        break
      except httpx.ReadError as e:
        print(e, file=sys.stderr)

def do_request(filepath):
  client = httpx.Client(http2=True)
  filename = filepath.name
  with filepath.open() as f:
    subtitles = f.read()

  parts = [{
    'text': PROMPT,
  }, {
    'text': f'文件名:{filename}\n文件内容:\n{subtitles}',
  }]

  j = {
    'contents': [{
      'parts': parts
    }],
  }
  with client.stream(
    'POST', URL,
    headers = {
      "X-goog-api-key": GEMINI_KEY,
      "Content-Type": "application/json",
    },
    json=j, timeout=120,
  ) as r:
    for line in r.iter_lines():
      if not line.startswith('data: '):
        continue

      line = line.removeprefix('data: ')

      data = json.loads(line)
      for a in data['candidates']:
        for b in a['content']['parts']:
          text = b['text']
          if not text:
            break
          print(text, end='', flush=True)

  print()

if __name__ == '__main__':
  import argparse

  parser = argparse.ArgumentParser()
  parser.add_argument('URL',
                      help='YouTube URL')
  parser.add_argument('--lang', default='en',
                      help='choose subtitles language')
  args = parser.parse_args()

  main(args.URL, args.lang)

脚本依赖Python和httpx库。当然鉴于httpx已经不再更新,你换成httpx2应该也能用。Gemini Key可以去这里生成,然后填到脚本开头。我使用的是gemini-3.1-flash-lite这个模型,因为免费版本中,它的每日请求数配额比较充足。

当然啦,视频要有CC字幕这个脚本才能用,否则会报错。默认使用英文字幕,包含自动生成的版本。如果是中文视频,可以使用--lang zh参数指定用中文字幕。