Skip to content
Other

EhShoko Models - Model Suite for Manga Translation on iOS

2 min read

This is a collection of ready-to-use models for a complete manga page translation cycle directly on the device (on-device) without sending images to a server. The repository is prepared for the free, open-source iOS app EhShoko, but the weights themselves are converted from well-known open projects into Core ML format (Apple's framework for running AI models on iPhone and iPad) and GGUF. This suite will be useful for mobile reader developers, comic translators, and local AI enthusiasts on Apple devices.

Key features

  • Text and speech bubble detection: Includes the detector-v4-s model (by ogkalu) and RTMDet (by fumetodev, 1024 px resolution), re-compiled into Core ML with 16-bit floating-point numbers (FP16).
  • Optical Character Recognition (OCR): manga-ocr-base-CPT v2 (based on kha-white/manga-ocr-base), split into an encoder and a single-step decoder in Core ML (FP16) format.
  • Page cleaning (Inpainting): Two models from the LaMa family (512×512 px) for painting over old text — the specialized lama_large_512px for manga/anime and the universal big-lama.
  • Local translator: GalTransl-v4-4B-2601 by SakuraLLM, requantized from Q6_K to the lighter Q4_K_M format via llama.cpp.

What you can do

  • Integrate into an iOS app: Use ready-made .mlpackage bundles to create an offline comic or visual novel translator on iPhone and Mac.
  • Build your own scan cleaning pipeline: Combine RTMDet and LaMa to automatically find text speech bubbles and clear them out before typesetting.
  • Run with llama.cpp: Connect the quantized version of GalTransl-v4-4B for local text translation without high memory requirements.

Example

The directory structure in the repository is organized using the // scheme — for example, det-v4s/1 for the detector or inp-lama-manga/1 for inpainting. The application checks the size and SHA-256 checksum before downloading the .mlpackage bundle, and when a model is updated, a new version folder is created without overwriting old files.

Read moreDetails
Formats: Core ML (.mlpackage in FP16 and FP32 for big-lama) and GGUF (Q4_K_M).
Licenses depend on the specific folder: detectors and big-lama are Apache-2.0, manga-inpainting is MIT + Apache-2.0.
Limitations: The manga-ocr-base-CPT and GalTransl-v4-4B models are distributed under CC BY-NC-SA 4.0 — strictly for non-commercial use.
Discuss Telegram 0 140

Will it run?

Runs in GGUF Q4_K_M

The most precise of the ready quantised files fits.

  • GGUF Q4_K_Mweights 2.3 GB · ready files3.1 GB

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: GGUF Q4_K_M — from RTX 2060

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # aalberrty/ehshoko-models-public
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download aalberrty/ehshoko-models-public --local-dir ~/models/ehshoko-models-public
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to ehshoko-models-public
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of ehshoko-models-public (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

aalberrty/ehshoko-models-public
Author
aalberrty
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

1400

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments

Other

Tau-Anchor

Tau-Anchor