Text Generation
Transformers
Chinese
English
privacy
pii
pii-detection
redaction
de-identification
traditional-chinese
taiwan
nvidia
enterprise
ace
Instructions to use APMIC/ACE-privacy-filter-zhtw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use APMIC/ACE-privacy-filter-zhtw with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="APMIC/ACE-privacy-filter-zhtw")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("APMIC/ACE-privacy-filter-zhtw", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use APMIC/ACE-privacy-filter-zhtw with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "APMIC/ACE-privacy-filter-zhtw" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/ACE-privacy-filter-zhtw", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/APMIC/ACE-privacy-filter-zhtw
- SGLang
How to use APMIC/ACE-privacy-filter-zhtw with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "APMIC/ACE-privacy-filter-zhtw" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/ACE-privacy-filter-zhtw", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "APMIC/ACE-privacy-filter-zhtw" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/ACE-privacy-filter-zhtw", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use APMIC/ACE-privacy-filter-zhtw with Docker Model Runner:
docker model run hf.co/APMIC/ACE-privacy-filter-zhtw
| license: other | |
| license_name: apmic-proprietary | |
| license_link: LICENSE | |
| language: | |
| - zh | |
| - en | |
| base_model: | |
| - openai/gpt-oss-20b | |
| tags: | |
| - privacy | |
| - pii | |
| - pii-detection | |
| - redaction | |
| - de-identification | |
| - traditional-chinese | |
| - taiwan | |
| - nvidia | |
| - enterprise | |
| - ace | |
| datasets: | |
| - nvidia/Nemotron-PII | |
| pipeline_tag: text-generation | |
| library_name: transformers | |
| # ACE-privacy-filter-zhtw | |
|  | |
|  | |
| ## Model Description | |
| **ACE-privacy-filter-zhtw** is a privacy-preserving language model from APMIC's **ACE** family, engineered to detect, classify, and neutralize **personally identifiable information (PII)** within Traditional Chinese (zh-TW) text. It is the enterprise sibling of an internal research lineage, hardened for production and aligned to the realities of Taiwanese data — government records, financial documents, healthcare notes, and customer correspondence. | |
| The model treats privacy not as a post-processing step, but as a native behavior: given free-form text, it returns content in which sensitive identifiers have been surfaced and removed, while the surrounding meaning is preserved. | |
| It is built on OpenAI's open-weight `gpt-oss-20b`. The corpora behind its zh-TW alignment and the full methodology of its training recipe, however, remain proprietary to APMIC. What is shared here is what it does — not entirely how it came to do it. | |
| ## Model Details | |
| - **Developed by:** APMIC | |
| - **Funded by:** APMIC, led by CEO Jerry Wu | |
| - **Model type:** Causal language model, fine-tuned for privacy filtering / de-identification (Transformers) | |
| - **Language(s):** Traditional Chinese (zh-TW) & English | |
| - **License:** APMIC proprietary (enterprise use; contact APMIC for terms) | |
| - **Base model:** [`openai/gpt-oss-20b`](https://huggingface.co/openai/gpt-oss-20b) — OpenAI's open-weight model, fine-tuned and aligned by APMIC for zh-TW privacy filtering. *(The training recipe and zh-TW alignment corpora remain proprietary.)* | |
| ## What It Does | |
| Given Traditional Chinese text, `ACE-privacy-filter-zhtw`: | |
| - **Detects** personally identifiable information embedded in natural, conversational, and document-style language. | |
| - **Classifies** each identifier into a privacy category. | |
| - **Neutralizes** it — redacting, masking, or replacing the sensitive span while keeping the text readable and semantically intact. | |
| It is designed to operate on the messy, real-world text where regex and rule engines fail: mixed Chinese-English content, inconsistent formatting, OCR-derived noise, and the idiomatic phrasing of Taiwanese business and government communication. | |
| ## Privacy Entity Coverage | |
| The filter is tuned toward identifiers that matter in a Taiwanese context, including (but not limited to): | |
| - 身分證字號 (National ID numbers) | |
| - 健保卡號 / 病歷號 (NHI card & medical record numbers) | |
| - 手機與市話號碼 (Mobile & landline numbers) | |
| - 地址 (Residential & mailing addresses) | |
| - 銀行帳號與信用卡號 (Bank account & card numbers) | |
| - 姓名 (Personal names) | |
| - Email 與帳號識別碼 (Email & account identifiers) | |
| - 車牌號碼 (Vehicle plate numbers) | |
| - 公司統一編號 (Business registration numbers) | |
| ## Data Foundation | |
| The structural backbone of `ACE-privacy-filter-zhtw`'s privacy understanding draws on [**nvidia/Nemotron-PII**](https://huggingface.co/datasets/nvidia/Nemotron-PII) — NVIDIA's large-scale synthetic corpus of 100,000 records spanning 55+ PII/PHI categories across 50+ industries, covering both structured documents (forms, invoices) and unstructured content (emails, notes). | |
| This foundation gave the model a broad, industry-spanning prior over *what privacy looks like* — across healthcare, finance, legal, and enterprise scenarios. APMIC then carried that prior across the language boundary, re-grounding it in the entity types, formats, and cultural conventions specific to Traditional Chinese and Taiwan. The bridge from Nemotron-PII's English foundation to native zh-TW behavior is where APMIC's proprietary work lives. | |
| ## NVIDIA Ecosystem | |
| `ACE-privacy-filter-zhtw` is part of APMIC's broader collaboration with NVIDIA's data and platform ecosystem. It builds on NVIDIA-originated privacy data, is optimized for inference on modern NVIDIA GPU architectures, and is designed to slot into enterprise deployment pipelines alongside other models in the ACE family. | |
| ## Intended Use | |
| - De-identification of Traditional Chinese documents prior to storage, analytics, or LLM ingestion. | |
| - Privacy guardrails in conversational AI and RAG pipelines handling Taiwanese user data. | |
| - Compliance support for organizations operating under Taiwan's 個人資料保護法 (Personal Data Protection Act) and adjacent regulatory regimes. | |
| ### Out of Scope | |
| - The model is an **assistive control, not a legal guarantee.** It does not certify compliance, and its output should be reviewed in high-stakes settings. | |
| - It is not a general-purpose chat assistant. | |
| - Performance on languages or locales outside Traditional Chinese / Taiwan is not a design target. | |
| ## Usage | |
| > The input/output format shown below is representative. Production integration details are provided to enterprise partners. | |
| ```python | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| model_id = "APMIC/ACE-privacy-filter-zhtw" | |
| tokenizer = AutoTokenizer.from_pretrained(model_id) | |
| model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto") | |
| text = "您好,我是王小明,身分證字號 A123456789,手機 0912-345-678,住台北市信義區市府路1號。" | |
| messages = [{"role": "user", "content": text}] | |
| inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device) | |
| output = model.generate(inputs, max_new_tokens=256) | |
| print(tokenizer.decode(output[0], skip_special_tokens=True)) | |
| # → 您好,我是[姓名],身分證字號 [身分證字號],手機 [電話],住[地址]。 | |
| ``` | |
| ## Positioning | |
| `ACE-privacy-filter-zhtw` demonstrates APMIC's capacity to take a foundation of NVIDIA privacy data and forge it into a **Traditional-Chinese-native, enterprise-ready privacy layer** — for organizations that need their data protected before it is ever processed, and who would rather not know exactly how the lock was made. | |
| ## Disclaimer | |
| This model is provided for enterprise privacy-filtering use. No PII detection system is perfect; APMIC makes no warranty that all sensitive information will be identified or removed. Operators remain responsible for validating outputs and meeting their own regulatory obligations. | |
| --- | |
| *© APMIC. Part of the ACE model family.* | |