Text Generation
Transformers.js
ONNX
Turkish
qwen3
turkish
humanizer
text-editing
style-transfer
webgpu
conversational
Instructions to use ekremcet/humanizer-tr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use ekremcet/humanizer-tr with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'ekremcet/humanizer-tr');
Update README for standalone ekremcet/humanizer-tr (Qwen3-1.7B 4-bit ONNX)
Browse files
README.md
CHANGED
|
@@ -17,12 +17,10 @@ tags:
|
|
| 17 |
- conversational
|
| 18 |
---
|
| 19 |
|
| 20 |
-
# Humanizer TR
|
| 21 |
|
| 22 |
A compact, browser-ready Turkish editorial text humanizer built on **Qwen3-1.7B**, exported as a single-file **4-bit FP16 ONNX (`onnx/model_q4f16.onnx`, 1.52 GB)** ready for **100% client-side WebGPU inference** via [`@huggingface/transformers`](https://huggingface.co/docs/transformers.js) as well as CPU/GPU inference via ONNX Runtime.
|
| 23 |
|
| 24 |
-
- **Flagship 4B model:** [`ekremcet/humanizer-tr`](https://huggingface.co/ekremcet/humanizer-tr)
|
| 25 |
-
|
| 26 |
## Highlights
|
| 27 |
|
| 28 |
- **Runs locally in the browser:** Single-file `onnx/model_q4f16.onnx` (`1.52 GB`, 4-bit block-32 symmetric `MatMulNBits` quantization, FP16 KV-cache, FP32 logits) works out of the box with `Transformers.js` v3 WebGPU — text never leaves the user's device.
|
|
@@ -31,7 +29,7 @@ A compact, browser-ready Turkish editorial text humanizer built on **Qwen3-1.7B*
|
|
| 31 |
|
| 32 |
## Benchmark Results
|
| 33 |
|
| 34 |
-
Evaluated on
|
| 35 |
|
| 36 |
| Split (`n=60`) | Faithfulness | Turkish | Human-like | `all ≥ 4` | Markdown Leak | Bad Punct | Loops | E5 Sim | Num Ret |
|
| 37 |
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
|
@@ -45,7 +43,7 @@ Evaluated on the same held-out Turkish benchmarks as [`ekremcet/humanizer-tr`](h
|
|
| 45 |
```js
|
| 46 |
import { AutoTokenizer, AutoModelForCausalLM, TextStreamer } from "@huggingface/transformers";
|
| 47 |
|
| 48 |
-
const MODEL_ID = "ekremcet/humanizer-tr
|
| 49 |
const SYSTEM_PROMPT =
|
| 50 |
"Sen Türkçe metinleri doğallaştıran deneyimli bir editörsün. Verilen metindeki tüm olguları, " +
|
| 51 |
"sayıları, tarihleri, özel adları ve olumsuzlukları %100 eksiksiz koruyarak; yapay zekâ " +
|
|
|
|
| 17 |
- conversational
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# Humanizer TR (`ekremcet/humanizer-tr`)
|
| 21 |
|
| 22 |
A compact, browser-ready Turkish editorial text humanizer built on **Qwen3-1.7B**, exported as a single-file **4-bit FP16 ONNX (`onnx/model_q4f16.onnx`, 1.52 GB)** ready for **100% client-side WebGPU inference** via [`@huggingface/transformers`](https://huggingface.co/docs/transformers.js) as well as CPU/GPU inference via ONNX Runtime.
|
| 23 |
|
|
|
|
|
|
|
| 24 |
## Highlights
|
| 25 |
|
| 26 |
- **Runs locally in the browser:** Single-file `onnx/model_q4f16.onnx` (`1.52 GB`, 4-bit block-32 symmetric `MatMulNBits` quantization, FP16 KV-cache, FP32 logits) works out of the box with `Transformers.js` v3 WebGPU — text never leaves the user's device.
|
|
|
|
| 29 |
|
| 30 |
## Benchmark Results
|
| 31 |
|
| 32 |
+
Evaluated on held-out Turkish benchmarks (60 samples per split, `max_new_tokens=1200`, `temperature=0.40`, judged by Qwen3.5-35B-A3B):
|
| 33 |
|
| 34 |
| Split (`n=60`) | Faithfulness | Turkish | Human-like | `all ≥ 4` | Markdown Leak | Bad Punct | Loops | E5 Sim | Num Ret |
|
| 35 |
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
|
|
|
| 43 |
```js
|
| 44 |
import { AutoTokenizer, AutoModelForCausalLM, TextStreamer } from "@huggingface/transformers";
|
| 45 |
|
| 46 |
+
const MODEL_ID = "ekremcet/humanizer-tr";
|
| 47 |
const SYSTEM_PROMPT =
|
| 48 |
"Sen Türkçe metinleri doğallaştıran deneyimli bir editörsün. Verilen metindeki tüm olguları, " +
|
| 49 |
"sayıları, tarihleri, özel adları ve olumsuzlukları %100 eksiksiz koruyarak; yapay zekâ " +
|