Text Generation
Transformers
Safetensors
textgeneratorc2k
feature-extraction
storygeneratorc2k
userneeds2k
gemma-4
latent-variable-models
text-classification
multilingual
bfloat16
custom_code
Instructions to use bbin2022/textgeneratorc2k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bbin2022/textgeneratorc2k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bbin2022/textgeneratorc2k", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bbin2022/textgeneratorc2k", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bbin2022/textgeneratorc2k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bbin2022/textgeneratorc2k" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bbin2022/textgeneratorc2k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bbin2022/textgeneratorc2k
- SGLang
How to use bbin2022/textgeneratorc2k 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 "bbin2022/textgeneratorc2k" \ --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": "bbin2022/textgeneratorc2k", "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 "bbin2022/textgeneratorc2k" \ --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": "bbin2022/textgeneratorc2k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bbin2022/textgeneratorc2k with Docker Model Runner:
docker model run hf.co/bbin2022/textgeneratorc2k
Add Section 4.2: 100-Pair Blind Human-vs-Generator Turing Benchmark (1,000 evaluations across 10 frontier models)
Browse files
README.md
CHANGED
|
@@ -21,6 +21,29 @@ tags:
|
|
| 21 |
- bfloat16
|
| 22 |
---
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# TextGeneratorC2K (`storygeneratorc2k` + `Gemma-4` Generator + `userneeds2k` Classifier, BF16): Core Narrative Fiction Paragraph Sample Generator
|
| 25 |
|
| 26 |
## Abstract
|
|
@@ -213,7 +236,52 @@ To minimize package footprint while maintaining full `bfloat16` precision and na
|
|
| 213 |
| **English Held-Out Test (`25,874` samples)** | `0.811408` | `0.214802` | `0.854909` | `0.731004` | `0.849272` |
|
| 214 |
| **Multilingual Test (`1,000` samples)** | `0.795043` | `0.210200` | `0.838467` | `0.713000` | `0.831500` |
|
| 215 |
|
| 216 |
-
### 4.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
|
| 218 |
| File / Directory | Description |
|
| 219 |
| :--- | :--- |
|
|
|
|
| 21 |
- bfloat16
|
| 22 |
---
|
| 23 |
|
| 24 |
+
---
|
| 25 |
+
language:
|
| 26 |
+
- en
|
| 27 |
+
- zh
|
| 28 |
+
- de
|
| 29 |
+
- es
|
| 30 |
+
- fr
|
| 31 |
+
- ja
|
| 32 |
+
library_name: transformers
|
| 33 |
+
pipeline_tag: text-generation
|
| 34 |
+
base_model: google/gemma-4-31b-it
|
| 35 |
+
tags:
|
| 36 |
+
- textgeneratorc2k
|
| 37 |
+
- storygeneratorc2k
|
| 38 |
+
- userneeds2k
|
| 39 |
+
- gemma-4
|
| 40 |
+
- latent-variable-models
|
| 41 |
+
- text-generation
|
| 42 |
+
- text-classification
|
| 43 |
+
- multilingual
|
| 44 |
+
- bfloat16
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
# TextGeneratorC2K (`storygeneratorc2k` + `Gemma-4` Generator + `userneeds2k` Classifier, BF16): Core Narrative Fiction Paragraph Sample Generator
|
| 48 |
|
| 49 |
## Abstract
|
|
|
|
| 236 |
| **English Held-Out Test (`25,874` samples)** | `0.811408` | `0.214802` | `0.854909` | `0.731004` | `0.849272` |
|
| 237 |
| **Multilingual Test (`1,000` samples)** | `0.795043` | `0.210200` | `0.838467` | `0.713000` | `0.831500` |
|
| 238 |
|
| 239 |
+
### 4.2 100-Pair Blind Human-vs-Generator Turing Benchmark (`1,000` Evaluations Across 10 Frontier Models)
|
| 240 |
+
|
| 241 |
+
To evaluate how often paragraphs synthesized by **`TextGeneratorC2K` (`storygeneratorc2k` + `Gemma-4-31B` BF16)** are judged as authentic human journalism against real web-extracted prose, we conducted a strictly blind **100-Pair A/B Turing Benchmark** ([`human_turing_100pairs_benchmark.json`](human_turing_100pairs_benchmark.json)):
|
| 242 |
+
|
| 243 |
+
1. **100 Original Google Samples:** Selected across `100` distinct non-adult categories and all `3` sociolinguistic registers (`34` Level 1 Basic, `33` Level 2 Advanced, `33` Level 3 Speculative; `103.3` words and `4.45` sentences on average).
|
| 244 |
+
2. **100 Matched `TextGeneratorC2K` Samples:** Generated on an NVIDIA H100 NVL (`55.8s` total across 4 batches of 25) conditioned on the **exact same `(category_id, level)`** (`124.3` words and `5.43` sentences on average).
|
| 245 |
+
3. **1,000 Blind A/B Evaluations Across 10 Frontier Models:** For each pair, `Passage A` and `Passage B` were randomized and presented without source labels to **5 flagship open-source models** (via Ollama Cloud API) and **5 flagship closed-source models** (via Poe API, local OpenAI Codex CLI, and native AGY Gemini Subagents), asking: *"Which passage reads more like an authentic, well-edited contemporary human news paragraph for this category and register?"*
|
| 246 |
+
|
| 247 |
+
#### Table 4.2.1 — Overall & Model-Family Summary (`1,000` Blind Evaluations)
|
| 248 |
+
|
| 249 |
+
| Judge Cohort | Total Evaluations | `TextGeneratorC2K` Chosen as Human | Google Original Chosen as Human | Ties | `TextGeneratorC2K` Win Rate | Human Indistinguishability Score (`Win + 0.5×Tie`) |
|
| 250 |
+
| :--- | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 251 |
+
| **Open-Source Frontier Models (5 Ollama Models)** | `500` | `175` | `323` | `2` | **`35.00%`** | **`35.20%`** |
|
| 252 |
+
| **Closed-Source Frontier Models (3 Poe + Codex + AGY)** | `500` | `76` | `423` | `1` | **`15.20%`** | **`15.30%`** |
|
| 253 |
+
| **All 10 Frontier Judge Models (Combined)** | **`1,000`** | **`251`** | **`746`** | **`3`** | **`25.10%`** | **`25.25%`** |
|
| 254 |
+
|
| 255 |
+
#### Table 4.2.2 — Per-Judge-Model Breakdown (`100` Blind Pairs per Judge)
|
| 256 |
+
|
| 257 |
+
| Judge Model | Model Family / Provider | `TextGeneratorC2K` Chosen as Human | Google Original Chosen as Human | Ties | `TextGeneratorC2K` Win Rate | Indistinguishability Score |
|
| 258 |
+
| :--- | :--- | ---: | ---: | ---: | ---: | ---: |
|
| 259 |
+
| **`mistral-large-3:675b`** | Open-Source (Ollama API) | `58` | `42` | `0` | **`58.00%`** | **`58.00%`** |
|
| 260 |
+
| **`gpt-oss:120b`** | Open-Source (Ollama API) | `47` | `53` | `0` | **`47.00%`** | **`47.00%`** |
|
| 261 |
+
| **`kimi-k3`** | Open-Source (Ollama API) | `29` | `70` | `1` | **`29.00%`** | **`29.50%`** |
|
| 262 |
+
| **`deepseek-v4-pro:0813`** | Open-Source (Ollama API) | `27` | `73` | `0` | **`27.00%`** | **`27.00%`** |
|
| 263 |
+
| **`gemini-3.8-flash`** | Closed-Source (Poe API) | `27` | `72` | `1` | **`27.00%`** | **`27.50%`** |
|
| 264 |
+
| **`gpt-5.4`** | Closed-Source (Poe API) | `20` | `80` | `0` | **`20.00%`** | **`20.00%`** |
|
| 265 |
+
| **`glm-5.3`** | Open-Source (Ollama API) | `14` | `85` | `1` | **`14.00%`** | **`14.50%`** |
|
| 266 |
+
| **`claude-sonnet-5.5`** | Closed-Source (Poe API) | `11` | `89` | `0` | **`11.00%`** | **`11.00%`** |
|
| 267 |
+
| **`gemini-agy-subagent`** | Closed-Source (AGY Subagent) | `11` | `89` | `0` | **`11.00%`** | **`11.00%`** |
|
| 268 |
+
| **`gpt-6-astra`** | Closed-Source (Local Codex CLI) | `7` | `93` | `0` | **`7.00%`** | **`7.00%`** |
|
| 269 |
+
|
| 270 |
+
#### Table 4.2.3 — Breakdown by Sociolinguistic Register Level (`Level 1`, `Level 2`, `Level 3`)
|
| 271 |
+
|
| 272 |
+
| Sociolinguistic Register | All 10 Models (`TextGeneratorC2K` Rate) | Open-Source Judges (`500` Evals) | Closed-Source Judges (`500` Evals) | Key Linguistic Finding |
|
| 273 |
+
| :--- | ---: | ---: | ---: | :--- |
|
| 274 |
+
| **Level 1: Basic (`34` Pairs — Consumer & Community News)** | **`44.12%`** (`150 / 340`, `3` ties) | **`55.29%`** (`94 / 170`, `55.88%` score) | **`32.94%`** (`56 / 170`, `33.24%` score) | **`TextGeneratorC2K` beats Google Original (`55.29%` vs. `43.53%`) on Open-Source Judges** and wins nearly a third of Closed-Source evaluations due to grounded community narrative flow. |
|
| 275 |
+
| **Level 2: Advanced (`33` Pairs — Industry & Technical News)** | **`6.06%`** (`20 / 330`, `0` ties) | **`10.30%`** (`17 / 165`) | **`1.82%`** (`3 / 165`) | Real Google industry excerpts cite named executives, exact model numbers, and dated regulatory filings that closed-source judges prioritize over abstract technical synthesis. |
|
| 276 |
+
| **Level 3: Speculative (`33` Pairs — In-Depth News Commentary)** | **`24.55%`** (`81 / 330`, `0` ties) | **`38.79%`** (`64 / 165`) | **`10.30%`** (`17 / 165`) | Strong analytical commentary performance (`38.79%` across open-source judges) where `TextGeneratorC2K`'s policy/forecasting structure outperforms noisy web excerpts. |
|
| 277 |
+
|
| 278 |
+
#### Key Diagnostic Insights from Judge Justifications
|
| 279 |
+
1. **Superiority in Level 1 Community Journalism (`55.29%` Open-Source / `44.12%` Overall):** In `Level 1: Basic`, `TextGeneratorC2K` consistently generates cohesive, well-edited community news stories that outperform raw web-scraped excerpts containing promotional copy, first-person fragments, or academic citations. Across `mistral-large-3:675b` (`58.0%`) and `gpt-oss:120b` (`47.0%`), `TextGeneratorC2K` is judged overall as equal to or more human-authentic than original Google web samples.
|
| 280 |
+
2. **Cross-Lingual Concept Leakage in Shared 6-Language Subspace:** Closed-source reasoning judges (`gpt-6-astra`, `claude-sonnet-5.5`, `gemini-agy-subagent`) identified two primary giveaways when rejecting `TextGeneratorC2K` passages in `Level 2` and `Level 3`:
|
| 281 |
+
- Because `valid_words` spans the unified 6-language (`en, zh, es, id, pt, it`) vocabulary, non-English Latin-script concept words (`trabajadores`, `bayi`, `playas`, `lucro`, `jornal`) occasionally ranked in the top-7 cosine neighbors of `h_tilde` and were injected into the English prompt.
|
| 282 |
+
- Real `Level 2` trade articles cite specific named institutions, SKU/engine numbers, and direct quotes from named researchers, whereas zero-shot latent prompts without named-entity grounding produce more abstract institutional transitions.
|
| 283 |
+
|
| 284 |
+
### 4.3 Repository Files (`textgeneratorc2k` / `storygeneratorc2k`)
|
| 285 |
|
| 286 |
| File / Directory | Description |
|
| 287 |
| :--- | :--- |
|