TIP

IDEAS INTO PRACTICE

Share ideas. Build tools for practice.

Frameworks, proposals, tools, and writing in English and Japanese by Masahiro Nakatsugawa.

01 / FRAMEWORKS

Frameworks & proposals

Practical ways to question quality, organization, design, and value creation.

Question organizational structure

SIDE Framework

Four questions to uncover misalignments between responsibility, authority, roles, and decision-making.

A lens for retrospectives, Agile, and digital transformation: distinguish structural problems from incidental friction.

Explore on GitHub

Clarify design intent

CORE Framework

A design compass using Context, Object, Reaction, and Evolution to examine architecture and strategy.

Connects purpose, responsibility, consequences, and future change with the practical perspectives of Seven Ark.

Explore on GitHub

Find value in absence

Inverse Value Canvas

Reframes missing features and omitted elements as opportunities for value, differentiation, and collaboration.

Moves through Missing, Harmed, Inverted Ally, and Strategic Fit to identify who benefits from an absence and why.

Explore on GitHub

02 / SOFTWARE & WEB SECURITY

Software & web security tools

Tools for code quality, dependencies, license assessment, and web-application testing.

SBOM vulnerability & license review

SecuLens

SecuLens: npm version

A security assessment CLI distributed via npm, PyPI, and Packagist. Matches SBOMs against vulnerability data, checks license policy, and runs static analysis — all with cited evidence.

Matches SPDX/CycloneDX SBOMs against the OSV advisory database, parses complex license expressions (AND/OR/WITH), and generates localized Word reports for clients. Distributed with the same design across three ecosystems: TypeScript, Python, and PHP.

Explore SecuLens features

03 / LLM & AI SECURITY

LLM & AI security tools

Tools for reviewing LLM output handling, model artifacts, and agent resilience against prompt injection.

A lightweight pre-publish model check

Model Audit Lite

Model Audit Lite: DOI

A lightweight CLI that checks a Hugging Face model's safety in about five minutes, with zero infrastructure — flagging pickle weights, custom code, and other arbitrary-code-execution risks.

Combines three independent checks: file-distribution auditing, before/after conversion-consistency comparison, and a known-pattern safety probe suite. Not a replacement for heavyweight tools like Meta's CyberSecEval — scoped narrowly for whoever is doing the conversion to self-check their own work.

Explore on GitHub

Benchmark with Japanese attack patterns

AgentDojo (Japanese)

AgentDojo (Japanese): DOI

A Japanese adaptation of AgentDojo, the prompt-injection benchmark for LLM agents — rebuilt for Japanese context, not just translated.

Provides the same four suites (banking, Slack, travel, workspace) with 97 user tasks and 31 injections, including 25 Japanese-specific attack patterns such as keigo-based and fake system-notice injections.

Explore on GitHub

04 / NLP

Japanese NLP tools

Japanese search and embedding technology that runs in the browser or on-device.

Japanese/English semantic search in 3D

Ruri Atlas

A browser-only Japanese/English semantic search tool. Computes embeddings via WebGPU and plots semantically related sentences on a 3D map.

Supports switching between embedding models including ruri-v3, with a built-in feature to visualize how Japanese prompt-injection patterns distort the embedding space. All processing stays local — nothing is sent externally. Published as a Hugging Face Space — try it directly in the browser.

Explore on Hugging Face

Visualize attacks on LLM agents

Agent Defense Radar

A visualization tool for understanding and defending against indirect prompt injection. Shows real attention patterns from a live model and lets you test your own endpoint.

Pairs a recorded Model X-Ray (attention and response, guarded vs. unguarded) with a Live Model Test against your own OpenAI-compatible endpoint. Published as a Hugging Face Space — try it directly in the browser.

Explore on Hugging Face

05 / MODELS

Published models

Speech, search, and language models converted for on-device use, published on Hugging Face across Core ML, MLX, Core AI, TFLite, and more — pick the runtime that matches your platform. Before publishing, each model goes through a lightweight safety audit with Model Audit Lite, with the report attached to its model page.

2-bit quantization that fits large models on a 16GB Mac

Project Pyrite

Project Pyrite is a sensitivity-aware ultra-low-bit quantization pipeline that reallocates bits to the most sensitive layers. It brings Qwen3.8-27B, llm-jp-4-32B-A3B (MoE), DeepSeek-Coder-V2-Lite and others down to 2 bits, cutting KL divergence from the original by up to ~22% at exactly the same byte budget as standard 2-bit quantization, so they run on a 16GB Apple Silicon Mac.

GGUF builds for llama.cpp, Ollama, and LM Studio accompany the MLX builds. Also published: the MoE-Stream engine (pyrite-stream), which streams only the needed experts from NVMe, and a streaming container format for FLOW Studio. The paper is available on Zenodo.

Japanese text embeddings

Ruri v3

The Japanese text-embedding model ruri-v3 — the foundation for on-device semantic search, similarity search, and RAG — converted across four runtimes (Core ML, MLX, Core AI, TFLite) and four sizes (30M/70M/130M/310M), so it runs server-free on iOS, macOS, or Android.

A 310M reranker variant is also available in TFLite, MLX, and Core AI. These on-device ports pair with the WebGPU conversion used in the browser-based Ruri Atlas.

Japanese search reranking

Japanese Reranker v2

The Japanese reranker japanese-reranker-v2, which reorders search results by semantic relevance, converted in two sizes (xsmall/small) across five runtimes (Core ML, MLX, Core AI, TFLite, ONNX for web), so the same model runs from the browser down to mobile.

Paired with ruri-v3 embeddings, this completes a full server-free Japanese RAG pipeline entirely on-device.

Run a Japanese reasoning model on a Mac

LLM-jp 4.1 8B Thinking

The reasoning-focused model llm-jp-4.1-8b-thinking from the LLM-jp project, distributed as a 4-bit quantized MLX build and a GGUF build — run Japanese chain-of-thought responses on Apple Silicon without a server.

The previous-generation llm-jp-4-8b-thinking is also available as a 4-bit MLX build, making comparison and migration easier.

A coding-focused model that runs on a Mac

Qwen3.5 4B Agentic Coder

A Qwen3.5 4B model specialized for agentic coding assistance, 4-bit quantized and optimized for Apple Silicon via MLX. The most-downloaded model in this collection.

A lightweight, practical option for trying agentic code generation and review directly on a Mac, with no server round-trip.

Other published models

Time-series forecasting model

Chronos-Bolt Small

From Amazon. Forecasts up to 64 steps ahead from past values

Retrieval embedding model

Contriever

Dense retrieval embeddings from Meta

Emotion classification model

RoBERTa go_emotions

Classifies 28 emotions in English text

Multilingual encoder

mDeBERTa v3 base

From Microsoft. A base for fine-tuning classifiers

Audio-text embeddings

CLAP HTSAT fused

Embeds audio and text in one space for text-to-sound search

Search reranking

GTE Reranker ModernBERT

ModernBERT cross-encoder reranker from Alibaba

A small LLM for iPhone and Mac

LFM3 1.7B

From Liquid AI. Core ML build with a stateful KV cache

Sentiment analysis LLM

Sentiment Analysis 7B

Microsoft model, 4-bit for 16GB Macs

User representation generation

UserRepGen 4B

Microsoft model, 4-bit for 16GB Macs

On-device Japanese speech recognition

Kotoba-Whisper v2.0

Japanese speech recognition, 6.3x faster than whisper-large-v3

Table structure detection model

Table Transformer Detection

Detects table structures in document images

Object detection model

YOLOS Small

Object detection across 91 COCO classes

Depth estimation model

Depth Anything v2 Small

Monocular depth estimation

Manga-specialized OCR model

Manga OCR

Extracts text from manga, including hand-drawn lettering

Japanese embedding model

PLaMo Embedding 1B

Japanese text embeddings from Preferred Networks

Named entity recognition model

BERT base NER

Extracts names, places, and other entities

English summarization model

BART large CNN

Automatic summarization of English news articles

Lightweight language model

Pythia 160M

A small model with stateful inference support

06 / WRITING

Writing for a wider conversation.

Perspectives on AI and society that reach beyond technology, in English and Japanese.

Substack

English

Masahiro Nakatsugawa

English writing on dependency structures across biology, history, and AI.

Read in English

Medium

English

Masahiro Nakatsugawa

English essays exploring AI and society through examples from nature and culture.

Read in English

Zenn

Japanese

Masahiro Nakatsugawa

Technical articles in Japanese on what was learned building model conversions and security tools.

Read in Japanese