{
  "schema_version": "1.0",
  "id": "T-e337ded7321d",
  "url": "https://gpuatlas.top/articles/T-e337ded7321d/",
  "title": "faster-whisper 的 float16、int8、int8_float16 应该怎么选？",
  "summary": "用安静口述、噪声和人名数字三类录音对照精度。先检查转写错误，再比较完整处理时间、显存和批量空间。",
  "language": "zh-Hans",
  "category": {
    "id": "c-15",
    "name": "语音模型实践",
    "url": "https://gpuatlas.top/categories/c-15/"
  },
  "topics": [
    {
      "id": "model-4a02811030",
      "name": "Whisper",
      "kind": "model",
      "description": "长录音和实时语音的处理方式不同。比较模型版本、faster-whisper、计算精度和批量设置。",
      "url": "https://gpuatlas.top/topics/model-4a02811030/"
    }
  ],
  "body_text": "faster-whisper选择float16、int8或int8_float16，先核对当前设备和CTranslate2支持，不能只按名字给所有硬件排速度。官方示例有GPU float16、GPU int8_float16和CPU int8等路径，示例不代表任何版本都相同。\n\n低位可能减少部分权重存储，解码、批量和缓冲仍存在；混合名称也不表示流程里所有张量采用同一类型。确认实际执行与版本，文件加载成功不能代替目标计算路径。\n\n固定模型、原音频、语言、任务、beam、VAD和时间戳，完整消费segments后记录总耗时、峰值和全部结果。批处理单独作为一组，多个进程复制模型也不能与内部batch混成精度差异。\n\n做选择时，不妨拿三段自己常见的录音：一段安静口述、一段有背景噪声、一段包含人名和数字。每种精度都使用同一模型、相同语言、beam和VAD设置，完整遍历segments后再停止计时。否则只计到返回生成器，可能把尚未执行的转写误当成已经完成。\n\n先逐项核对数字、人名、漏句和重复，再比较整段音频的处理时间与显存。如果int8_float16省出空间却把关键数字转错，就保留float16或换模型继续比较；若两者结果都满足用途，再看能否用节省的空间提高批量。实时字幕则另看分段等待，离线整段转写更快，并不自动代表字幕出现得更及时。",
  "published_at": null,
  "modified_at": "2026-11-26T15:17:38.690397+00:00",
  "evidence": {
    "type": "documentation_and_conditional_estimates",
    "hardware_tested": false,
    "note": "资料解释与条件估算，非硬件实测。"
  },
  "sources": [
    {
      "id": "faster-whisper",
      "url": "https://raw.githubusercontent.com/SYSTRAN/faster-whisper/master/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "torch-dtypes",
      "url": "https://docs.pytorch.org/docs/2.15/tensor_attributes.html",
      "retrieved_at": "2026-11-25T10:13:38.582093+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-e337ded7321d/",
    "json": "https://gpuatlas.top/data/articles/T-e337ded7321d.json",
    "markdown": "https://gpuatlas.top/data/articles/T-e337ded7321d.md"
  }
}
