Skip to content

TransPocket 0.1.4

Latest

Choose a tag to compare

@maoruiQa maoruiQa released this 28 Oct 21:21
· 3 commits to main since this release

TransPocket 0.1.4 fixes TranslateGemma in text mode, adds Index-Translate 2B as the quality default, lets you pick a quantization level for each LLM, and makes simultaneous interpretation stream.

  • Fix: TranslateGemma (and Qwen3.5) showed nothing in text translation. The result was computed and then dropped before it reached the screen.
  • Fix: with "TranslateGemma thinking" on, the reasoning note could appear in the translation.
  • New: Index-Translate 2B (Bilibili, built on Qwen3.5, 150 languages) is the recommended quality model, about 1.9 GB of memory. The model list now shows Qwen3.5 0.8B (performance), Index-Translate 2B (quality) and TranslateGemma 4B (large). Mozilla, HY-MT and Madlad are under "Other models", where they can be chosen and downloaded.
  • New: each of the three has a quantization menu, fastest on phone CPUs first. Q4_0, IQ4_NL and Q4_K are repacked for the phone's int8 instructions. IQ4_XS is the smallest 4-bit file but reads the prompt more slowly. Q8_0 where offered. An existing Q4_K_M download keeps working.
  • Faster: llama.cpp now ships CPU builds for each ARM feature level (dotprod, i8mm, SVE, SME) and loads the best one. Before, every phone used the plain ARMv8.0 build.
  • New (simultaneous interpretation, Settings, both on by default): "Streaming recognition" shows the sentence you are still saying, re-read about once a second. "Translate while speaking" translates its start once two live transcripts agree on it, at the next comma or after a few words, without waiting for the pause.
  • Traditional Chinese is now requested as Traditional Chinese from the LLMs.
  • Which APK to download: TransPocket-0.1.4-arm64-v8a.apk for phones (about 246 MB, was 416 MB), TransPocket-0.1.4-x86_64.apk for x86_64 devices such as emulators or Chromebooks, or TransPocket-0.1.4-universal.apk (both, about 351 MB) if you are unsure. 32-bit devices are not supported. The update check in the app picks the right one.
  • Emoji in an LLM translation no longer risks a crash.

Tested: unit tests (156); the model list, Other page and quantization menus on an emulator; all three GGUF models inside the app on an x86_64 emulator (Qwen3.5, Index-Translate, TranslateGemma, including Traditional Chinese and emoji). Not yet tested on an ARM phone: GGUF speed with the new CPU builds, and streaming recognition/translation with a microphone. Please report problems.

The first upload of this release had a single arm64-only APK that some phones refused to install ("invalid package"); it was replaced by the three APKs above.

Update (APKs last replaced on 2026-10-29): LLM translation in simultaneous interpretation is much faster. An earlier replacement the same day kept the start of the prompt decoded and ended answers at the rating, but each sentence still re-read about 200 prompt tokens, and "Translate while speaking" gained nothing.

  • Voice sentences are now one conversation per session: the fixed instructions, then each sentence with the model's answer. The native runtime keeps it decoded between sentences, so a new sentence only reads its own words (about 20–40 tokens instead of about 200). Qwen3.5 and Index-Translate are hybrid recurrent models; for them the runtime keeps small checkpoints so it can go back without starting over.
  • The translation appears while the model writes it, and speech output can start on its first finished sentence.
  • The model is loaded and reads its instructions while the microphone starts, so the first sentence no longer waits for it.
  • "Translate while speaking" now pays off: the rest of a sentence continues the cached conversation, and an early piece that already shows text is kept instead of being translated again.
  • Only TranslateGemma rates its own sentences. Asked for a [Q=n] line, Qwen3.5 0.8B rated almost everything 1 and often repeated the instructions, and Index-Translate copied up to 130 tokens of instructions into the answer for short pieces. Their sentences are now graded from recognition and translation signals only. TranslateGemma's rating takes 2 decoding steps instead of 6.
  • TranslateGemma thinking now applies to text translation only.
  • Qwen3-ASR: a live-transcript pass that is still running when the sentence ends is stopped, so the final transcript does not wait for it.

Measured on an x86_64 emulator with the release APK, 10 English sentences into Chinese, average per sentence after the first ("v0.1.2 prompts" are the old prompts run on the same emulator; v0.1.2 showed nothing until the end):

Model 0.1.4 before now first text now v0.1.2 prompts
Qwen3.5 0.8B 756 ms 293 ms 121 ms 450–510 ms
Index-Translate 2B 1277 ms 727 ms 325 ms 1120–1229 ms
TranslateGemma 4B 2432 ms 1646 ms 373 ms 2433–2553 ms

With "Translate while speaking", the part after an early piece: 573 → 251 ms, 1133 → 611 ms, 2128 → 1457 ms. Chinese into English is about the same. A phone is slower than this emulator; the ratios should carry over, but this was not measured on an ARM phone, and the full pipeline with a microphone was not run on the emulator.
Same version (0.1.4, version code 32); install over the earlier 0.1.4. The in-app update check does not offer it because the version did not change. Built from commit b9fe2a6 on main.

Full changelog: v0.1.3...v0.1.4

中文摘要:

  • 修复:TranslateGemma(以及 Qwen3.5)在文本翻译里不输出。结果已经算出来了,但没有送到界面上。
  • 修复:开启“TranslateGemma 思考模式”时,推理内容可能混进译文。
  • 新增:Index-Translate 2B(哔哩哔哩,基于 Qwen3.5,支持 150 种语言)作为默认推荐的质量档,约需 1.9 GB 内存。模型列表只保留 Qwen3.5 0.8B(性能)、Index-Translate 2B(质量)和 TranslateGemma 4B(大模型);Mozilla、HY-MT、Madlad 移到“其他模型”页面,可在那里选择和下载。
  • 新增:三个模型都可以选量化档位,按手机 CPU 上的速度从快到慢排列。Q4_0、IQ4_NL、Q4_K 会针对手机的 int8 指令重排权重;IQ4_XS 文件最小,但读入原文更慢;部分模型提供 Q8_0。已下载的 Q4_K_M 继续可用。
  • 更快:llama.cpp 现在按 ARM 指令级别(dotprod、i8mm、SVE、SME)分别编译,运行时选最合适的版本;之前所有手机都用最基础的 ARMv8.0 版本。
  • 新增(同声传译,设置中默认开启):“流式语音识别”边说边显示正在说的这句话(约每秒更新一次);“边说边译”在两次实时识别对句首一致后,就在下一个逗号处或几个词之后先翻译,不等停顿。
  • 繁体中文现在会以繁体中文的要求发给大模型。
  • 下载哪个 APK:手机下载 TransPocket-0.1.4-arm64-v8a.apk(约 246 MB,原 416 MB);模拟器、Chromebook 等 x86_64 设备下载 TransPocket-0.1.4-x86_64.apk;不确定就下载 TransPocket-0.1.4-universal.apk(两者都含,约 351 MB)。不支持 32 位设备。App 内的更新检查会自动选对应的包。
  • 大模型译文里出现 emoji 不再有崩溃风险。
  • 已测试:单元测试、模拟器上的模型列表/其他模型页面/量化菜单,以及在 x86_64 模拟器的 App 进程里跑通三个 GGUF 模型(含繁体中文和 emoji)。尚未在 ARM 真机上测试:新 CPU 版本的速度、带麦克风的流式识别与边说边译。
  • 本版最初上传的是只含 arm64 的单个 APK,部分手机提示“安装包无效”,已替换为上面三个安装包。

更新(2026-10-29 最后一次替换安装包):同声传译中大模型翻译大幅提速。 同一天较早的一次替换保留了提示词开头、并在评分处结束输出,但每句仍要重新读入约 200 个 token 的提示词,“边说边译”也没有带来提升。

  • 语音句子现在在一次会话中组成一段连续对话:固定说明在前,后面是每一句和模型给出的译文。原生运行时在句与句之间保留已读入的内容,新的一句只读入它自己的文字(约 20–40 个 token,原来约 200 个)。Qwen3.5 和 Index-Translate 是混合循环模型,运行时为它们保存小的检查点,回退时不必从头读。
  • 译文在模型输出时就逐步显示,朗读也可以在第一句写完时开始。
  • 麦克风启动的同时加载模型并读入说明,第一句话不再等待模型加载。
  • “边说边译”现在真正有效:句子剩下的部分接着同一段已缓存的对话翻译;已经显示译文的前半句会保留,不再整句重译。
  • 只有 TranslateGemma 给自己的译文评分。要求输出 [Q=n] 时,Qwen3.5 0.8B 几乎每句都打 1 分并常常重复说明,Index-Translate 会把多达 130 个 token 的说明抄进短片段的译文。这两个模型现在只根据识别和翻译信号评级。TranslateGemma 的评分从 6 步解码减少到 2 步。
  • TranslateGemma 思考模式只用于文本翻译。
  • Qwen3-ASR:句子结束时仍在运行的实时字幕识别会被停止,最终识别不再等待它。

x86_64 模拟器、正式版 APK、10 句英文译成中文,第一句之后每句的平均耗时(“v0.1.2 提示词”是在同一模拟器上运行旧提示词;v0.1.2 要等全部译完才显示):

模型 0.1.4 之前 现在 现在首字出现 v0.1.2 提示词
Qwen3.5 0.8B 756 ms 293 ms 121 ms 450–510 ms
Index-Translate 2B 1277 ms 727 ms 325 ms 1120–1229 ms
TranslateGemma 4B 2432 ms 1646 ms 373 ms 2433–2553 ms

开启“边说边译”时,前半句之后剩余部分:573 → 251 ms,1133 → 611 ms,2128 → 1457 ms。中文译英文结果相近。手机比这台模拟器慢,比例应当相近,但尚未在 ARM 真机上测速,也没有在模拟器上用麦克风跑完整流程。
版本号不变(0.1.4,版本代码 32),直接覆盖安装之前的 0.1.4 即可;因为版本号没变,App 内的更新检查不会提示。构建自 main 分支的提交 b9fe2a6。