53 lines
2.1 KiB
Markdown
53 lines
2.1 KiB
Markdown
|
|
|
||
|
|
---
|
||
|
|
license: other
|
||
|
|
license_name: lfm1.0
|
||
|
|
license_link: LICENSE
|
||
|
|
tags:
|
||
|
|
- liquid
|
||
|
|
- lfm2
|
||
|
|
- edge
|
||
|
|
base_model:
|
||
|
|
- LiquidAI/LFM2-350M-PII-Extract-JP
|
||
|
|
---
|
||
|
|
|
||
|
|
<center>
|
||
|
|
<div style="text-align: center;">
|
||
|
|
<img
|
||
|
|
src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/2b08LKpev0DNEk6DlnWkY.png"
|
||
|
|
alt="Liquid AI"
|
||
|
|
style="width: 100%; max-width: 100%; height: auto; display: inline-block; margin-bottom: 0.5em; margin-top: 0.5em;"
|
||
|
|
/>
|
||
|
|
</div>
|
||
|
|
<div style="display: flex; justify-content: center; gap: 0.5em;">
|
||
|
|
<a href="https://playground.liquid.ai/chat">
|
||
|
|
<a href="https://playground.liquid.ai/"><strong>Try LFM</strong></a> • <a href="https://docs.liquid.ai/lfm"><strong>Documentation</strong></a> • <a href="https://leap.liquid.ai/"><strong>LEAP</strong></a></a>
|
||
|
|
</div>
|
||
|
|
</center>
|
||
|
|
|
||
|
|
# LFM2-350M-PII-Extract-JP-GGUF
|
||
|
|
|
||
|
|
Based on [LFM2-350M](https://huggingface.co/LiquidAI/LFM2-350M), this checkpoint is designed to **extract personally identifiable information (PII) from Japanese text and output it in JSON format.**
|
||
|
|
The output can then be used to mask out sensitive information in contracts, emails, personal medical reports, insurance bills, etc. directly on-device.
|
||
|
|
|
||
|
|
Find more details in the original model card: https://huggingface.co/LiquidAI/LFM2-350M-PII-Extract-JP
|
||
|
|
|
||
|
|
## 🏃 How to run LFM2
|
||
|
|
|
||
|
|
Example usage with [llama.cpp](https://github.com/ggml-org/llama.cpp):
|
||
|
|
|
||
|
|
- Extract address, company/institution names, email addresses, human names, and phone numbers from Japanese text.
|
||
|
|
```
|
||
|
|
llama-cli -hf LiquidAI/LFM2-350M-PII-Extract-JP-GGUF -st --temp 0.0 --json-schema {} --jinja
|
||
|
|
```
|
||
|
|
|
||
|
|
- Specifying a particular quantization scheme (e.g. `Q8_0`):
|
||
|
|
```
|
||
|
|
llama-cli -hf LiquidAI/LFM2-350M-PII-Extract-JP-GGUF:Q8_0 -st --temp 0.0 --json-schema {} --jinja
|
||
|
|
```
|
||
|
|
Several quantization variants are available (`Q4_0`, `Q4_K_M`, `Q5_K_M`, `Q6_K`, `Q8_0`, and `F16`).
|
||
|
|
|
||
|
|
- Only extracting particular entities (e.g. only extract `address` and `company_name`):
|
||
|
|
```
|
||
|
|
llama-cli -hf LiquidAI/LFM2-350M-PII-Extract-JP-GGUF -st --temp 0.0 --json-schema {} -sys "Extract <address>, <company_name>"
|
||
|
|
```
|