- HaS Text Model (Full Precision)
- HaS Text Model๏ผๅ จ้ๆจกๅ๏ผ
- HaS Text Model๏ผๅ จ้ๆจกๅ๏ผ
HaS Text Model (Full Precision)
HaS (Hide and Seek) is an on-device privacy model providing a complete pipeline from entity recognition to anonymization and restoration.
- ๐ฆ 0.6B parameters, full precision (FP16), 1.2 GB
- ๐ Data never leaves device โ local inference, no network required
- ๐ 8 languages natively supported: Chinese, English, Portuguese, French, Spanish, German, Korean, Japanese
- โก Apple M4 Pro benchmark: prefill ~4,900 tok/s (llama.cpp), decode ~156 tok/s (mlx_lm)
This is the full-precision base model for fine-tuning and research. For production deployment, use the quantized versions: Q8_0 (recommended) or Q4_K_M.
1. Core Capabilities
Traditional anonymization (regex, Presidio, etc.) only does pattern matching. HaS is an on-device Agentic privacy pipeline โ a set of composable atomic capabilities that solve multi-turn consistency, reversible restoration, and post-anonymization data usability.
| Capability | Description |
|---|---|
| 3-Level Semantic Tags | Instead of [REDACTED], produces tags like <Amount[1].ContractAmount.NumberSymbol> โ LLMs understand "this is a contract amount", preserving data usability |
| Coreference Resolution | "CloudGenius Inc.", "CloudGenius", "ไบๅๆบ่ฝ" โ all unified as <Organization[1].Company.Name>. Different forms, same ID |
| Multi-turn Consistency | Carries historical mapping dictionaries for incremental anonymization. Entity IDs stay consistent across turns. Same mechanism supports recursive chunking for long documents |
| Reversible Restoration | Anonymized text can be processed by cloud LLMs (translation, rewriting, etc.), then Seek restores the tags back to original values |
| Open-set Entity Types | Trained on ~70,000 entity types. Users can freely specify any type name without being limited to predefined categories |
| Public/Private Distinction | "Industrial and Commercial Bank of China" preserved, "Li Hong 138-xxxx" anonymized โ only redacts what should be redacted |
2. Six Atomic Capabilities
| # | Capability | Description |
|---|---|---|
| 1 | NER | Recognize named entities of specified types |
| 2 | Hide_with | Anonymize using an existing mapping dictionary (maintains cross-text consistency) |
| 3 | Hide_without | First-time anonymization (no mapping, model generates tags autonomously) |
| 4 | Pair | Extract mapping relationships from original and anonymized text pairs |
| 5 | Split | Split composite tags into atomic single-entity mappings |
| 6 | Seek | Restore tagged text using a mapping dictionary |
3. Structured Semantic Tags & Coreference Resolution
3-Level Semantic Tags
Tags use a <EntityType[ID].Category.Attribute> three-level structure:
<Address[1].City.CityName> โ identifies this as a city name
<Address[2].StreetAddress.FullAddress> โ identifies this as a detailed address
<Amount[1].ContractAmount.NumberSymbol> โ identifies this as a contract amount
<Phone[1].Mobile.FullNumber> โ identifies this as a mobile number
Comparison with traditional approaches:
| Traditional | HaS 3-Level Tag |
|---|---|
[ADDRESS] |
<Address[1].City.CityName> |
[ADDRESS] |
<Address[2].StreetAddress.FullAddress> |
[MONEY] |
<Amount[1].ContractAmount.NumberSymbol> |
Coreference Resolution
The same entity often appears in multiple forms. HaS automatically recognizes they refer to the same object and unifies them under one ID:
Original forms Unified tag
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
CloudGenius Inc. โ <Organization[1].Company.Name>
CloudGenius โ <Organization[1].Company.Name>
ไบๅๆบ่ฝ โ <Organization[1].Company.Name>
CG โ <Organization[1].Company.Name>
This ensures anonymized text remains logically coherent โ LLMs seeing multiple <Organization[1]> know it's the same company. Critical for multi-turn conversations and long document chunking: entity IDs remain globally consistent across turns and chunks.
4. Quick Start
Recommended deployment with llama.cpp:
llama-server -m has_text_model.gguf -ngl 999 -c 8192 -np 1 -fa on
- Listens on
http://127.0.0.1:8080/v1by default - OpenAI Chat Completions compatible API
- ~2.4 GB total memory with default settings
5. Usage Scenarios
The 6 atomic capabilities can be composed into various privacy pipelines:
| Scenario | Description | Capabilities Used |
|---|---|---|
| Redacted Sharing | Auto-anonymize files, emails, code before sending; retain mapping for restoration | Hide โ Pair |
| Privacy Scanning | Scan files/directories, list all sensitive entities, assess exposure risk | NER |
| Privacy Knowledge Base | Anonymize documents before ingestion; restore query results via mapping | Hide โ Pair (write), Seek (read) |
| Log Redaction | Batch-anonymize ops logs before handing to support teams | Hide โ Pair |
| Secure Cloud Chat | Anonymize text before sending to cloud LLM; restore LLM responses | NER โ Hide โ Pair โ Seek |
| AI Memory Privacy | Store Agent long-term memory in anonymized form; restore on demand | Hide โ Pair (store), Seek (recall) |
6. Prompt Templates
โ ๏ธ Templates must match character-for-character โ the model was trained on these exact templates. Any deviation may degrade output quality.
NER
Recognize the following entity types in the text.
Specified types:{types_json_array}
<text>{text}</text>
Hide_with (with mapping)
Turn 1: Same as NER template
Turn 2:
Replace the above-mentioned entity types in the text according to the existing mapping pairs:{mapping_json}
Hide_without (without mapping)
Turn 1: Same as NER template
Turn 2 (fixed text, no variables):
Replace the above-mentioned entity types in the text.
Pair
<original>{original_text}</original>
<anonymized>{anonymized_text}</anonymized>
Extract the mapping from anonymized entities to original entities.
Split
Split each composite anonymized key into atomic keys.
Composite mapping:
{composite_mapping_json_array}
Seek
The mapping from anonymized entities to original entities:
{mapping_json}
Restore the original text based on the above mapping:
{text_with_tags}
7. Speed Benchmarks
Test platform: Apple M4 Pro (48 GB RAM)
| Metric | llama.cpp | mlx_lm | mlc_llm |
|---|---|---|---|
| FP16 model size | 1.2 GB | 1.2 GB | 1.2 GB |
| FP16 prefill (tok/s) | 4,904 | 4,272 | 1,818 |
| FP16 decode (tok/s) | 128 | 156 | 118 |
| Q4 model size | 0.4 GB | 0.4 GB | 0.4 GB |
| Q4 prefill (tok/s) | 4,828 | 3,183 | 2,236 |
| Q4 decode (tok/s) | 238 | 345 | 172 |
All performance figures are rounded. Bold indicates best in class.
8. Quantization Versions
| Version | Quantization | File Size | Runtime Memory | Notes |
|---|---|---|---|---|
| Full Precision | FP16 | 1.2 GB | ~2.4 GB | Base model for fine-tuning and research |
| Q8_0 | 8.50 BPW | 639 MB | ~1.56 GB | Recommended for production, best output quality |
| Q4_K_M | 5.24 BPW | 397 MB | ~1.29 GB | Faster inference, lower memory, for resource-constrained environments |
ไธญๆ็
HaS Text Model๏ผๅ จ้ๆจกๅ๏ผ
HaS๏ผHide and Seek๏ผ ๆฏไธไธช็ซฏไพง้จ็ฝฒ็้็งๆจกๅ๏ผๆไพไปๅฎไฝ่ฏๅซๅฐ่ฑๆ่ฟๅ็ๅฎๆด็ฎก็บฟใ
- ๐ฆ 0.6B ๅๆฐ๏ผๅ จ็ฒพๅบฆ๏ผFP16๏ผ๏ผ1.2 GB
- ๐ ๆฐๆฎไธๅบ่ฎพๅค๏ผๆฌๅฐๆจ็๏ผๆ ้่็ฝ
- ๐ 8 ่ฏญ่จๅ็ๆฏๆ๏ผไธญใ่ฑใ่กใๆณใ่ฅฟใๅพทใ้ฉใๆฅ
- โก Apple M4 Pro ๅฎๆต๏ผprefill ~4,900 tok/s๏ผllama.cpp๏ผ๏ผdecode ~156 tok/s๏ผmlx_lm๏ผ
่ฟๆฏๅ จ็ฒพๅบฆๅบๅบงๆจกๅ๏ผ้็จไบๅพฎ่ฐๅ็ ็ฉถใ็ไบง้จ็ฝฒ่ฏทไฝฟ็จ้ๅ็ๆฌ๏ผQ8_0๏ผๆจ่๏ผๆ Q4_K_Mใ
ไธใๆ ธๅฟ่ฝๅ
ไผ ็ป่ฑๆๆนๆก๏ผๆญฃๅใPresidio ็ญ๏ผๅชๅๆจกๅผๅน้ ใHaS ็ๅฎไฝๆฏ็ซฏไพง Agentic ้็ง็ฎก็บฟโโ็จไธ็ปๅฏ็ปๅ็ๅๅญ่ฝๅ่งฃๅณๅค่ฝฎไธ่ดใๅฏ้่ฟๅๅ่ฑๆๅๆฐๆฎๅฏ็จๆง็้ฎ้ขใ
| ่ฝๅ | ่ฏดๆ |
|---|---|
| ไธ็บง่ฏญไนๆ ็ญพ | ่ฑๆๅไธๆฏ [REDACTED]๏ผ่ๆฏ <้้ข[1].ๅๅ้้ข.ๆฐๅญ็ฌฆๅท> ่ฟๆ ทๆบๅธฆ่ฏญไน็ๆ ็ญพโโLLM ไธ็ๅฐฑ็ฅ้"่ฟๆฏไธ็ฌๅๅ้้ข"๏ผไฟๆ่ฑๆๅๆฐๆฎๅฏ็จๆง |
| ๆไปฃๆถ่งฃ | "ไบๅๆบ่ฝๆ้ๅ
ฌๅธ"ใ"ไบๅๆบ่ฝ"ใ"CloudGenius"โ ๅ
จ้จๅฝไธบ <็ป็ป[1].ไผไธ.ๅ็งฐ>ใไธๅๅๆณ๏ผๅไธ็ผๅท |
| ๅค่ฝฎไธ่ด | ๆบๅธฆๅๅฒๆ ๅฐๅญๅ ธๅๅข้่ฑๆ๏ผ่ทจ่ฝฎๆฌกๅฎไฝ็ผๅทไธ่ดใๅไธๆบๅถๆฏๆ้ๅฝๅๅๅค็่ถ ้ฟๆๆกฃ |
| ๅฏ้่ฟๅ | ่ฑๆๅ็ๆๆฌๅฏๅ ไบค็ปไบ็ซฏ LLM ๅค็๏ผ็ฟป่ฏใๆนๅ็ญ๏ผ๏ผSeek ่ฝๅฏนๅค็ๅๆๆฌไธญ็ๆ ็ญพ่ฟ่ก่ฟๅ |
| ๅผ้ๆๅฎ | ่ฎญ็ป่ฆ็็บฆ 7 ไธ็งๅฎไฝ็ฑปๅ๏ผ็จๆทๅฏ่ช็ฑๆๅฎไปปๆ็ฑปๅๅ็งฐ๏ผไธๅ้ขๅฎไน็ฑปๅซ้ๅถ |
| ๅ ฌ็งๅบๅ | "ไธญๅฝๅทฅๅ้ถ่ก"ไฟ็๏ผ"ๆ็บข 138-xxxx"่ฑๆโโๅช่ฑ่ฏฅ่ฑ็๏ผไธ่ฟๅบฆ่ฑๆ |
ไบใ6 ไธชๅๅญ่ฝๅ
| # | ่ฝๅ | ่ฏดๆ |
|---|---|---|
| 1 | NER | ่ฏๅซๆๅฎ็ฑปๅ็ๅฝๅๅฎไฝ |
| 2 | Hide_with | ไฝฟ็จๅทฒๆๆ ๅฐๅญๅ ธ่ฑๆ๏ผไฟๆ่ทจๆๆฌไธ่ด๏ผ |
| 3 | Hide_without | ้ฆๆฌก่ฑๆ๏ผๆ ๆ ๅฐ๏ผๆจกๅ่ชไธป็ๆๆ ็ญพ๏ผ |
| 4 | Pair | ไปๅๆๅ่ฑๆๆๆฌๅฏนไธญๆๅๆ ๅฐๅ ณ็ณป |
| 5 | Split | ๆๅๅคๅๆ ็ญพไธบๅๅญๅๅฎไฝๆ ๅฐ |
| 6 | Seek | ๆ นๆฎๆ ๅฐๅญๅ ธ่ฟๅๅซๆ ็ญพ็ๆๆฌ |
ไธใ็ปๆๅ่ฏญไนๆ ็ญพไธๆไปฃๆถ่งฃ
ไธ็บง่ฏญไนๆ ็ญพ
่ฑๆๅ็ๆ ็ญพ้็จ <ๅฎไฝ็ฑปๅ[็ผๅท].ๅ็ฑป.ๅฑๆง> ไธ็บง็ปๆ๏ผ
<ๅฐๅ[1].ๅๅธ.ๅธๅ> โ ็ฅ้่ฟๆฏไธไธชๅๅธๅ
<ๅฐๅ[2].่ก้้จ็.ๅฎๆดๅฐๅ> โ ็ฅ้่ฟๆฏไธไธช่ฏฆ็ปๅฐๅ
<้้ข[1].ๅๅ้้ข.ๆฐๅญ็ฌฆๅท> โ ็ฅ้่ฟๆฏไธ็ฌๅๅ้้ข๏ผไธๅชๆฏๆฎ้ๆฐๅญ
<็ต่ฏ[1].ๆๆบๅท.ๅฎๆดๅท็ > โ ็ฅ้่ฟๆฏๆๆบๅท๏ผไธๆฏๅบงๆบๆไผ ็
ๅฏนๆฏไผ ็ป่ฑๆๆนๆก๏ผ
| ไผ ็ปๆนๆก | HaS ไธ็บงๆ ็ญพ |
|---|---|
[ADDRESS] |
<ๅฐๅ[1].ๅๅธ.ๅธๅ> |
[ADDRESS] |
<ๅฐๅ[2].่ก้้จ็.ๅฎๆดๅฐๅ> |
[MONEY] |
<้้ข[1].ๅๅ้้ข.ๆฐๅญ็ฌฆๅท> |
ๆไปฃๆถ่งฃ
ๅไธๅฎไฝๅจๆๆฌไธญๅพๅพไปฅๅค็งๅฝขๅผๅบ็ฐใHaS ไผ่ชๅจ่ฏๅซๅฎไปฌๆๅๅไธๅฏน่ฑก๏ผ็ปไธๅฝไธบๅไธ็ผๅท๏ผ
ๅๆไธญ็ๅๆณ ่ฑๆๅ็ปไธไธบ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
ไบๅๆบ่ฝ็งๆๆ้ๅ
ฌๅธ โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
ไบๅๆบ่ฝ โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
CloudGenius โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
ไบๅ โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
่ฟ็กฎไฟไบ่ฑๆๅ็ๆๆฌ้ป่พ่ชๆดฝโโLLM ็ๅฐๅคๅค <็ป็ป[1]> ๅฐฑ็ฅ้ๆฏๅไธๅฎถๅ
ฌๅธ๏ผ่ไธไผ่ฏฏไปฅไธบๆฏไธๅๅฎไฝใๅจๅค่ฝฎๅฏน่ฏๅ้ฟๆๆกฃๅๅไธญๅฐคไธบๅ
ณ้ฎ๏ผ่ทจ่ฝฎๆฌกใ่ทจๅๅ็ๅฎไฝ็ผๅทๅ
จๅฑไธ่ดใ
ๅใๅฟซ้ๅผๅง
ๆจ่ไฝฟ็จ llama.cpp ๆจ็ๆกๆถ๏ผ
llama-server -m has_text_model.gguf -ngl 999 -c 8192 -np 1 -fa on
- ้ป่ฎค็ๅฌ
http://127.0.0.1:8080/v1 - API ๅ ผๅฎน OpenAI Chat Completions ๆ ผๅผ
- ้ป่ฎค้ ็ฝฎไธๆปๅ ๅญ็บฆ 2.4 GB
ไบใไฝฟ็จๅบๆฏ
6 ไธชๅๅญ่ฝๅๅฏไปฅ็ปๅๆๅค็ง้็ง็ฎก็บฟ๏ผ
| ๅบๆฏ | ่ฏดๆ | ไฝฟ็จ่ฝๅ |
|---|---|---|
| ่ฑๆๅไบซ | ๆไปถใ้ฎไปถใไปฃ็ ๅจๅคๅๅ่ชๅจ่ฑๆ๏ผไฟ็ๆ ๅฐ่กจๅฏ้ๆถ่ฟๅ | Hide โ Pair |
| ๅ จ้้็งๆซๆ | ๆซๆๆไปถๆ็ฎๅฝ๏ผๅๅบๆๆๆๆๅฎไฝ๏ผ่ฏไผฐๆณ้ฒ้ฃ้ฉ | NER |
| ้็ง็ฅ่ฏๅบ | ๆๆกฃๅ ่ฑๆๅๅ ฅๅบ๏ผๆฅ่ฏข็ปๆ้่ฟๆ ๅฐ่กจ่ฟๅๅๆ | Hide โ Pair๏ผๅๅ ฅ๏ผใSeek๏ผ่ฏปๅ๏ผ |
| ๆฅๅฟ่ฑๆ | ่ฟ็ปดๆฅๅฟๅจไบค็ปๆฏๆๅข้ๅๆน้่ฑๆ | Hide โ Pair |
| ๅฎๅ จไบ็ซฏๅฏน่ฏ | ่ฑๆๅๆๆฌๅ็ปไบ็ซฏ LLM ๅค็๏ผLLM ่ฟๅ็ปๆๅ่ฟๅ | NER โ Hide โ Pair โ Seek |
| AI ่ฎฐๅฟ้็ง | Agent ็้ฟๆ่ฎฐๅฟไปฅ่ฑๆๅฝขๅผๅญๅจ๏ผไฝฟ็จๆถๆ้่ฟๅ | Hide โ Pair๏ผๅญๅจ๏ผใSeek๏ผๅฌๅ๏ผ |
ๅ ญใๆ็คบ่ฏๆจกๆฟ
โ ๏ธ ๆจกๆฟๅฟ ้กป้ๅญ็ฌฆ็ฒพ็กฎๅน้ ๏ผๆจกๅๅบไบ่ฟไบๆจกๆฟ่ฎญ็ปใไปปไฝๅๅทฎ๏ผ็ฉบๆ ผใๆข่กใๆ ็น๏ผ้ฝๅฏ่ฝ้ไฝ่พๅบ่ดจ้ใ
NER
Recognize the following entity types in the text.
Specified types:{types_json_array}
<text>{text}</text>
Hide_with๏ผๅธฆๆ ๅฐ่ฑๆ๏ผ
็ฌฌ 1 ่ฝฎ๏ผไธ NER ๆจกๆฟ็ธๅ
็ฌฌ 2 ่ฝฎ๏ผ
Replace the above-mentioned entity types in the text according to the existing mapping pairs:{mapping_json}
Hide_without๏ผๆ ๆ ๅฐ่ฑๆ๏ผ
็ฌฌ 1 ่ฝฎ๏ผไธ NER ๆจกๆฟ็ธๅ
็ฌฌ 2 ่ฝฎ๏ผๅบๅฎๆๆฌ๏ผๆ ๅ้๏ผ๏ผ
Replace the above-mentioned entity types in the text.
Pair๏ผๆๅๆ ๅฐ๏ผ
<original>{original_text}</original>
<anonymized>{anonymized_text}</anonymized>
Extract the mapping from anonymized entities to original entities.
Split๏ผๆๅๅคๅๆ ็ญพ๏ผ
Split each composite anonymized key into atomic keys.
Composite mapping:
{composite_mapping_json_array}
Seek๏ผ่ฟๅ๏ผ
The mapping from anonymized entities to original entities:
{mapping_json}
Restore the original text based on the above mapping:
{text_with_tags}
7. Speed Benchmarks
Test platform: Apple M4 Pro (48 GB RAM)
| Metric | llama.cpp | mlx_lm | mlc_llm |
|---|---|---|---|
| FP16 model size | 1.2 GB | 1.2 GB | 1.2 GB |
| FP16 prefill (tok/s) | 4,904 | 4,272 | 1,818 |
| FP16 decode (tok/s) | 128 | 156 | 118 |
| Q4 model size | 0.4 GB | 0.4 GB | 0.4 GB |
| Q4 prefill (tok/s) | 4,828 | 3,183 | 2,236 |
| Q4 decode (tok/s) | 238 | 345 | 172 |
All performance figures are rounded. Bold indicates best in class.
8. Quantization Versions
| Version | Quantization | File Size | Runtime Memory | Notes |
|---|---|---|---|---|
| Full Precision | FP16 | 1.2 GB | ~2.4 GB | Base model for fine-tuning and research |
| Q8_0 | 8.50 BPW | 639 MB | ~1.56 GB | Recommended for production, best output quality |
| Q4_K_M | 5.24 BPW | 397 MB | ~1.29 GB | Faster inference, lower memory, for resource-constrained environments |
ไธญๆ็
HaS Text Model๏ผๅ จ้ๆจกๅ๏ผ
HaS๏ผHide and Seek๏ผ ๆฏไธไธช็ซฏไพง้จ็ฝฒ็้็งๆจกๅ๏ผๆไพไปๅฎไฝ่ฏๅซๅฐ่ฑๆ่ฟๅ็ๅฎๆด็ฎก็บฟใ
- ๐ฆ 0.6B ๅๆฐ๏ผๅ จ็ฒพๅบฆ๏ผFP16๏ผ๏ผ1.2 GB
- ๐ ๆฐๆฎไธๅบ่ฎพๅค๏ผๆฌๅฐๆจ็๏ผๆ ้่็ฝ
- ๐ 8 ่ฏญ่จๅ็ๆฏๆ๏ผไธญใ่ฑใ่กใๆณใ่ฅฟใๅพทใ้ฉใๆฅ
- โก Apple M4 Pro ๅฎๆต๏ผprefill ~4,900 tok/s๏ผllama.cpp๏ผ๏ผdecode ~156 tok/s๏ผmlx_lm๏ผ
่ฟๆฏๅ จ็ฒพๅบฆๅบๅบงๆจกๅ๏ผ้็จไบๅพฎ่ฐๅ็ ็ฉถใ็ไบง้จ็ฝฒ่ฏทไฝฟ็จ้ๅ็ๆฌ๏ผQ8_0๏ผๆจ่๏ผๆ Q4_K_Mใ
ไธใๆ ธๅฟ่ฝๅ
ไผ ็ป่ฑๆๆนๆก๏ผๆญฃๅใPresidio ็ญ๏ผๅชๅๆจกๅผๅน้ ใHaS ็ๅฎไฝๆฏ็ซฏไพง Agentic ้็ง็ฎก็บฟโโ็จไธ็ปๅฏ็ปๅ็ๅๅญ่ฝๅ่งฃๅณๅค่ฝฎไธ่ดใๅฏ้่ฟๅๅ่ฑๆๅๆฐๆฎๅฏ็จๆง็้ฎ้ขใ
| ่ฝๅ | ่ฏดๆ |
|---|---|
| ไธ็บง่ฏญไนๆ ็ญพ | ่ฑๆๅไธๆฏ [REDACTED]๏ผ่ๆฏ <้้ข[1].ๅๅ้้ข.ๆฐๅญ็ฌฆๅท> ่ฟๆ ทๆบๅธฆ่ฏญไน็ๆ ็ญพโโLLM ไธ็ๅฐฑ็ฅ้"่ฟๆฏไธ็ฌๅๅ้้ข"๏ผไฟๆ่ฑๆๅๆฐๆฎๅฏ็จๆง |
| ๆไปฃๆถ่งฃ | "ไบๅๆบ่ฝๆ้ๅ
ฌๅธ"ใ"ไบๅๆบ่ฝ"ใ"CloudGenius"โ ๅ
จ้จๅฝไธบ <็ป็ป[1].ไผไธ.ๅ็งฐ>ใไธๅๅๆณ๏ผๅไธ็ผๅท |
| ๅค่ฝฎไธ่ด | ๆบๅธฆๅๅฒๆ ๅฐๅญๅ ธๅๅข้่ฑๆ๏ผ่ทจ่ฝฎๆฌกๅฎไฝ็ผๅทไธ่ดใๅไธๆบๅถๆฏๆ้ๅฝๅๅๅค็่ถ ้ฟๆๆกฃ |
| ๅฏ้่ฟๅ | ่ฑๆๅ็ๆๆฌๅฏๅ ไบค็ปไบ็ซฏ LLM ๅค็๏ผ็ฟป่ฏใๆนๅ็ญ๏ผ๏ผSeek ่ฝๅฏนๅค็ๅๆๆฌไธญ็ๆ ็ญพ่ฟ่ก่ฟๅ |
| ๅผ้ๆๅฎ | ่ฎญ็ป่ฆ็็บฆ 7 ไธ็งๅฎไฝ็ฑปๅ๏ผ็จๆทๅฏ่ช็ฑๆๅฎไปปๆ็ฑปๅๅ็งฐ๏ผไธๅ้ขๅฎไน็ฑปๅซ้ๅถ |
| ๅ ฌ็งๅบๅ | "ไธญๅฝๅทฅๅ้ถ่ก"ไฟ็๏ผ"ๆ็บข 138-xxxx"่ฑๆโโๅช่ฑ่ฏฅ่ฑ็๏ผไธ่ฟๅบฆ่ฑๆ |
ไบใ6 ไธชๅๅญ่ฝๅ
| # | ่ฝๅ | ่ฏดๆ |
|---|---|---|
| 1 | NER | ่ฏๅซๆๅฎ็ฑปๅ็ๅฝๅๅฎไฝ |
| 2 | Hide_with | ไฝฟ็จๅทฒๆๆ ๅฐๅญๅ ธ่ฑๆ๏ผไฟๆ่ทจๆๆฌไธ่ด๏ผ |
| 3 | Hide_without | ้ฆๆฌก่ฑๆ๏ผๆ ๆ ๅฐ๏ผๆจกๅ่ชไธป็ๆๆ ็ญพ๏ผ |
| 4 | Pair | ไปๅๆๅ่ฑๆๆๆฌๅฏนไธญๆๅๆ ๅฐๅ ณ็ณป |
| 5 | Split | ๆๅๅคๅๆ ็ญพไธบๅๅญๅๅฎไฝๆ ๅฐ |
| 6 | Seek | ๆ นๆฎๆ ๅฐๅญๅ ธ่ฟๅๅซๆ ็ญพ็ๆๆฌ |
ไธใ็ปๆๅ่ฏญไนๆ ็ญพไธๆไปฃๆถ่งฃ
ไธ็บง่ฏญไนๆ ็ญพ
่ฑๆๅ็ๆ ็ญพ้็จ <ๅฎไฝ็ฑปๅ[็ผๅท].ๅ็ฑป.ๅฑๆง> ไธ็บง็ปๆ๏ผ
<ๅฐๅ[1].ๅๅธ.ๅธๅ> โ ็ฅ้่ฟๆฏไธไธชๅๅธๅ
<ๅฐๅ[2].่ก้้จ็.ๅฎๆดๅฐๅ> โ ็ฅ้่ฟๆฏไธไธช่ฏฆ็ปๅฐๅ
<้้ข[1].ๅๅ้้ข.ๆฐๅญ็ฌฆๅท> โ ็ฅ้่ฟๆฏไธ็ฌๅๅ้้ข๏ผไธๅชๆฏๆฎ้ๆฐๅญ
<็ต่ฏ[1].ๆๆบๅท.ๅฎๆดๅท็ > โ ็ฅ้่ฟๆฏๆๆบๅท๏ผไธๆฏๅบงๆบๆไผ ็
ๅฏนๆฏไผ ็ป่ฑๆๆนๆก๏ผ
| ไผ ็ปๆนๆก | HaS ไธ็บงๆ ็ญพ |
|---|---|
[ADDRESS] |
<ๅฐๅ[1].ๅๅธ.ๅธๅ> |
[ADDRESS] |
<ๅฐๅ[2].่ก้้จ็.ๅฎๆดๅฐๅ> |
[MONEY] |
<้้ข[1].ๅๅ้้ข.ๆฐๅญ็ฌฆๅท> |
ๆไปฃๆถ่งฃ
ๅไธๅฎไฝๅจๆๆฌไธญๅพๅพไปฅๅค็งๅฝขๅผๅบ็ฐใHaS ไผ่ชๅจ่ฏๅซๅฎไปฌๆๅๅไธๅฏน่ฑก๏ผ็ปไธๅฝไธบๅไธ็ผๅท๏ผ
ๅๆไธญ็ๅๆณ ่ฑๆๅ็ปไธไธบ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
ไบๅๆบ่ฝ็งๆๆ้ๅ
ฌๅธ โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
ไบๅๆบ่ฝ โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
CloudGenius โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
ไบๅ โ <็ป็ป[1].ไผไธ.ๅ็งฐ>
่ฟ็กฎไฟไบ่ฑๆๅ็ๆๆฌ้ป่พ่ชๆดฝโโLLM ็ๅฐๅคๅค <็ป็ป[1]> ๅฐฑ็ฅ้ๆฏๅไธๅฎถๅ
ฌๅธ๏ผ่ไธไผ่ฏฏไปฅไธบๆฏไธๅๅฎไฝใ
ๅใๅฟซ้ๅผๅง
ๆจ่ไฝฟ็จ llama.cpp ๆจ็ๆกๆถ๏ผ
llama-server -m has_text_model.gguf -ngl 999 -c 8192 -np 1 -fa on
- ้ป่ฎค็ๅฌ
http://127.0.0.1:8080/v1 - API ๅ ผๅฎน OpenAI Chat Completions ๆ ผๅผ
- ้ป่ฎค้ ็ฝฎไธๆปๅ ๅญ็บฆ 2.4 GB
ไบใไฝฟ็จๅบๆฏ
6 ไธชๅๅญ่ฝๅๅฏไปฅ็ปๅๆๅค็ง้็ง็ฎก็บฟ๏ผ
| ๅบๆฏ | ่ฏดๆ | ไฝฟ็จ่ฝๅ |
|---|---|---|
| ่ฑๆๅไบซ | ๆไปถใ้ฎไปถใไปฃ็ ๅจๅคๅๅ่ชๅจ่ฑๆ๏ผไฟ็ๆ ๅฐ่กจๅฏ้ๆถ่ฟๅ | Hide โ Pair |
| ๅ จ้้็งๆซๆ | ๆซๆๆไปถๆ็ฎๅฝ๏ผๅๅบๆๆๆๆๅฎไฝ๏ผ่ฏไผฐๆณ้ฒ้ฃ้ฉ | NER |
| ้็ง็ฅ่ฏๅบ | ๆๆกฃๅ ่ฑๆๅๅ ฅๅบ๏ผๆฅ่ฏข็ปๆ้่ฟๆ ๅฐ่กจ่ฟๅๅๆ | Hide โ Pair๏ผๅๅ ฅ๏ผใSeek๏ผ่ฏปๅ๏ผ |
| ๆฅๅฟ่ฑๆ | ่ฟ็ปดๆฅๅฟๅจไบค็ปๆฏๆๅข้ๅๆน้่ฑๆ | Hide โ Pair |
| ๅฎๅ จไบ็ซฏๅฏน่ฏ | ่ฑๆๅๆๆฌๅ็ปไบ็ซฏ LLM ๅค็๏ผLLM ่ฟๅ็ปๆๅ่ฟๅ | NER โ Hide โ Pair โ Seek |
| AI ่ฎฐๅฟ้็ง | Agent ็้ฟๆ่ฎฐๅฟไปฅ่ฑๆๅฝขๅผๅญๅจ๏ผไฝฟ็จๆถๆ้่ฟๅ | Hide โ Pair๏ผๅญๅจ๏ผใSeek๏ผๅฌๅ๏ผ |
ๅ ญใๆ็คบ่ฏๆจกๆฟ
โ ๏ธ ๆจกๆฟๅฟ ้กป้ๅญ็ฌฆ็ฒพ็กฎๅน้ ๏ผๆจกๅๅบไบ่ฟไบๆจกๆฟ่ฎญ็ปใไปปไฝๅๅทฎ๏ผ็ฉบๆ ผใๆข่กใๆ ็น๏ผ้ฝๅฏ่ฝ้ไฝ่พๅบ่ดจ้ใ
NER
Recognize the following entity types in the text.
Specified types:{types_json_array}
<text>{text}</text>
Hide_with๏ผๅธฆๆ ๅฐ่ฑๆ๏ผ
็ฌฌ 1 ่ฝฎ๏ผไธ NER ๆจกๆฟ็ธๅ
็ฌฌ 2 ่ฝฎ๏ผ
Replace the above-mentioned entity types in the text according to the existing mapping pairs:{mapping_json}
Hide_without๏ผๆ ๆ ๅฐ่ฑๆ๏ผ
็ฌฌ 1 ่ฝฎ๏ผไธ NER ๆจกๆฟ็ธๅ
็ฌฌ 2 ่ฝฎ๏ผๅบๅฎๆๆฌ๏ผๆ ๅ้๏ผ๏ผ
Replace the above-mentioned entity types in the text.
Pair๏ผๆๅๆ ๅฐ๏ผ
<original>{original_text}</original>
<anonymized>{anonymized_text}</anonymized>
Extract the mapping from anonymized entities to original entities.
Split๏ผๆๅๅคๅๆ ็ญพ๏ผ
Split each composite anonymized key into atomic keys.
Composite mapping:
{composite_mapping_json_array}
Seek๏ผ่ฟๅ๏ผ
The mapping from anonymized entities to original entities:
{mapping_json}
Restore the original text based on the above mapping:
{text_with_tags}
ไธใ้ๅบฆ่ฏไผฐ
ๆต่ฏๅนณๅฐ๏ผApple M4 Pro๏ผ48 GB ๅ ๅญ๏ผ
| ๆๆ | llama.cpp | mlx_lm | mlc_llm |
|---|---|---|---|
| FP16 ๆจกๅๅคงๅฐ | 1.2 GB | 1.2 GB | 1.2 GB |
| FP16 prefill๏ผtok/s๏ผ | 4,904 | 4,272 | 1,818 |
| FP16 decode๏ผtok/s๏ผ | 128 | 156 | 118 |
| Q4 ๆจกๅๅคงๅฐ | 0.4 GB | 0.4 GB | 0.4 GB |
| Q4 prefill๏ผtok/s๏ผ | 4,828 | 3,183 | 2,236 |
| Q4 decode๏ผtok/s๏ผ | 238 | 345 | 172 |
ๆๆๆง่ฝๆฐๆฎๅๅทฒๅๆดใ็ฒไฝ่กจ็คบ่ฏฅ้กนๆไฝณ่กจ็ฐใ
ๅ ซใ้ๅ็ๆฌ
- Downloads last month
- 157
Model tree for xuanwulab/HaS_Text_0209_0.6B
Base model
Qwen/Qwen3-0.6B-Base