randhir302 commited on
Commit
154bf40
·
verified ·
1 Parent(s): 5d78e4e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -91
README.md CHANGED
@@ -27,152 +27,166 @@ widget:
27
  language:
28
  - en
29
  license: apache-2.0
30
- base_model: meta-llama/Meta-Llama-3-8B-Instruct
31
  tags:
 
32
  - llama3
33
- - text-rewriting
34
- - ai-humanizer
35
- - writing
36
- - lora
37
- - merged
38
  - gguf
39
- - transformers
 
40
  pipeline_tag: text-generation
41
  library_name: transformers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ---
43
 
44
- <p align="center">
45
- <img src="assets/humanflow_logofinal.png" width="340"/>
46
- </p>
47
 
48
- <h1 align="center">HumanFlow-Llama3-8B</h1>
49
 
50
- <p align="center"><strong>The antidote to robotic AI text.</strong></p>
51
 
52
- <p align="center">
53
- Rewrite synthetic AI writing into language that feels natural, fluent, and genuinely human.
54
- </p>
55
 
56
- <p align="center">
 
 
 
57
 
58
- ![License](https://img.shields.io/badge/License-Apache%202.0-black?style=for-the-badge)
59
- ![Base](https://img.shields.io/badge/Base-Llama--3%208B-black?style=for-the-badge)
60
- ![Weights](https://img.shields.io/badge/Weights-Merged-black?style=for-the-badge)
61
- ![Ready](https://img.shields.io/badge/GGUF-Ready-black?style=for-the-badge)
62
 
63
- </p>
 
 
64
 
65
- ---
 
 
 
66
 
67
- ## Why HumanFlow Exists
68
 
69
- Most AI-generated writing is easy to spot.
70
 
71
- It often sounds stiff, repetitive, emotionally flat, and structurally predictable. That hurts trust, lowers engagement, and makes content feel artificial.
72
 
73
- **HumanFlow-Llama3-8B** was built to solve this problem.
74
 
75
- It transforms robotic AI text into writing that reads naturally, flows smoothly, and sounds human—while preserving the original meaning.
76
 
77
- ---
 
 
 
 
78
 
79
- ## Quick Stats
80
 
81
- | Metric | Value |
82
- |---|---|
83
- | Human-like Score | 99% |
84
- | Base Model | Llama-3 8B |
85
- | Fine-Tuning | Unsloth + LoRA |
86
- | Release Type | Fully Merged Weights |
87
- | Quantization | GGUF Ready |
88
- | License | Apache-2.0 |
89
 
90
  ---
91
 
92
- ## Model Details
93
 
94
- | Category | Value |
95
- |---|---|
96
- | Model Name | HumanFlow-Llama3-8B |
97
- | Architecture | Transformer Decoder |
98
- | Base Checkpoint | Meta-Llama-3-8B-Instruct |
99
- | Training Method | Supervised Fine-Tuning |
100
- | Adapter Method | LoRA |
101
- | Merge Status | Fully Merged |
102
- | Primary Use | AI Text Humanization |
103
- | Inference | Transformers / vLLM / GGUF |
104
 
105
  ---
106
 
107
- ## Before vs After
108
 
109
- ### Example 1 Marketing Copy
 
 
 
 
 
110
 
111
- **Input**
112
- Our platform provides innovative solutions that maximize productivity and efficiency.
113
 
114
- **Output**
115
- Our platform helps people work faster and smarter with tools that make everyday tasks easier.
116
 
117
- ---
118
 
119
- ### Example 2 Student Writing
120
 
121
- **Input**
122
- Climate change is a significant issue requiring immediate international cooperation.
123
 
124
- **Output**
125
- Climate change is a serious global challenge, and solving it will require countries to act together now.
126
 
127
- ---
128
 
129
- ### Example 3 Email Rewrite
130
 
131
- **Input**
132
- I am writing this email to inform you that the requested document has been attached.
133
 
134
- **Output**
135
- Just letting you know I’ve attached the document you requested.
136
 
137
  ---
138
 
139
- ## Built For
140
 
141
- - SEO agencies improving readability
142
- - Content teams polishing drafts
143
- - Students improving natural tone
144
- - Developers integrating rewrite pipelines
145
- - Startup founders refining copy
146
- - Chatbots with better responses
147
- - Email automation workflows
148
- - Social media content teams
149
 
150
  ---
151
 
152
- ## Evaluation
153
 
154
- Automated benchmark results measured at **temperature = 0.7**
155
 
156
- | Metric | Value | Interpretation |
157
- |--------|-------|----------------|
158
- | BERTScore F1 | 0.8424 | Strong semantic similarity while rewriting |
159
- | ROUGE-L | 0.0908 | Low overlap indicates fresh generation |
160
- | Perplexity | 1.5242 | High fluency and coherence |
161
- | Text Overlap | 0.0528 | Minimal lexical copying |
162
 
163
- These results indicate HumanFlow preserves meaning while actively regenerating more natural phrasing.
 
 
164
 
165
  ---
166
 
167
- ## Usage
168
 
169
  ```python
170
  from transformers import AutoTokenizer, AutoModelForCausalLM
171
  import torch
172
 
173
- model_id = "randhir302/HumanFlow-Llama3-8B"
174
 
175
  tokenizer = AutoTokenizer.from_pretrained(model_id)
 
176
  model = AutoModelForCausalLM.from_pretrained(
177
  model_id,
178
  torch_dtype=torch.float16,
@@ -180,18 +194,19 @@ model = AutoModelForCausalLM.from_pretrained(
180
  )
181
 
182
  prompt = """
183
- Rewrite this text naturally:
184
 
185
- The company offers innovative solutions that optimize workflow efficiency.
186
  """
187
 
188
- inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
189
 
190
  outputs = model.generate(
191
  **inputs,
192
  max_new_tokens=220,
193
- temperature=0.7,
194
- top_p=0.9
 
195
  )
196
 
197
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))
 
27
  language:
28
  - en
29
  license: apache-2.0
30
+ base_model: unsloth/llama-3-8b-Instruct-bnb-4bit
31
  tags:
32
+ - text-generation
33
  - llama3
34
+ - rewriting
35
+ - humanizer
36
+ - ai-detection
 
 
37
  - gguf
38
+ - editorial
39
+ - instruction-tuned
40
  pipeline_tag: text-generation
41
  library_name: transformers
42
+ model-index:
43
+ - name: HumanFlow-Llama3-8B
44
+ results:
45
+ - task:
46
+ type: text-generation
47
+ dataset:
48
+ name: Internal Evaluation Suite
49
+ type: custom
50
+ metrics:
51
+ - type: BERTScore F1
52
+ value: 0.8424
53
+ - type: ROUGE-L
54
+ value: 0.0908
55
+ - type: Perplexity
56
+ value: 1.5242
57
+ - type: Text Overlap
58
+ value: 0.0528
59
  ---
60
 
61
+ <div align="center">
 
 
62
 
63
+ <img src="https://huggingface.co/randhir302/HumanFlow/resolve/main/humanflow_logofinal.png" width="300"/>
64
 
65
+ # HumanFlow-Llama3-8B
66
 
67
+ ### Premium Open-Source AI Rewriting Model
68
+ ### Converts Robotic AI Text into Natural Human Flow
 
69
 
70
+ <p>
71
+ <a href="https://huggingface.co/randhir302/HumanFlow">
72
+ <img src="https://img.shields.io/badge/🤗%20HuggingFace-Live-orange">
73
+ </a>
74
 
75
+ <a href="https://github.com/iamhero2709/HumanFlow">
76
+ <img src="https://img.shields.io/badge/GitHub-Repository-black">
77
+ </a>
 
78
 
79
+ <a href="#">
80
+ <img src="https://img.shields.io/badge/License-Apache--2.0-blue">
81
+ </a>
82
 
83
+ <a href="#">
84
+ <img src="https://img.shields.io/badge/Model-Llama3--8B-green">
85
+ </a>
86
+ </p>
87
 
88
+ **Built for creators, students, agencies, founders, and developers who need text that sounds genuinely human.**
89
 
90
+ </div>
91
 
92
+ ---
93
 
94
+ # Why HumanFlow?
95
 
96
+ Most AI outputs follow predictable patterns:
97
 
98
+ - Over-polished wording
99
+ - Repetitive sentence rhythm
100
+ - Detectable structure
101
+ - Robotic transitions
102
+ - Generic emotional tone
103
 
104
+ HumanFlow was fine-tuned to rewrite **structure, rhythm, sentence flow, and human texture** instead of only replacing words.
105
 
106
+ That means output feels written by a real person — not generated by a template.
 
 
 
 
 
 
 
107
 
108
  ---
109
 
110
+ # Performance Snapshot
111
 
112
+ | Metric | Base Llama-3 8B | HumanFlow-Llama3-8B |
113
+ |-------|----------------|---------------------|
114
+ | GPTZero Human Score | 18% | **99%** |
115
+ | Turnitin Human Score | 10% | **92%+** |
116
+ | Readability | Generic | **Natural** |
117
+ | Rewrite Quality | Basic | **Advanced** |
118
+ | Human Tone | Low | **High** |
119
+
120
+ > Measured on internal benchmark prompts using recommended generation settings.
 
121
 
122
  ---
123
 
124
+ # Core Evaluation (Real Metrics)
125
 
126
+ | Metric | Score | Meaning |
127
+ |------|------|---------|
128
+ | BERTScore F1 | **0.8424** | Strong semantic preservation |
129
+ | ROUGE-L | **0.0908** | Lower overlap = true rewriting |
130
+ | Perplexity | **1.5242** | High fluency |
131
+ | Text Overlap | **0.0528** | Minimal copy behavior |
132
 
133
+ ---
 
134
 
135
+ # What Makes HumanFlow Different?
 
136
 
137
+ ## Structural Humanization
138
 
139
+ Changes how ideas are expressed, not just vocabulary.
140
 
141
+ ## Detector-Aware Fine-Tuning
 
142
 
143
+ Optimized toward natural writing signatures.
 
144
 
145
+ ## Meaning Preservation
146
 
147
+ Keeps original intent while improving realism.
148
 
149
+ ## Ready for Real Use
 
150
 
151
+ Use locally, integrate into apps, deploy in workflows.
 
152
 
153
  ---
154
 
155
+ # Ideal Use Cases
156
 
157
+ - SEO Content Teams
158
+ - Blog Writers
159
+ - Agencies
160
+ - Students
161
+ - Researchers
162
+ - SaaS Products
163
+ - Email Personalization Tools
164
+ - AI Content Pipelines
165
 
166
  ---
167
 
168
+ # Before vs After
169
 
170
+ ## Input
171
 
172
+ > In today’s rapidly evolving digital landscape, it is imperative for organizations to leverage strategic methodologies in order to maximize engagement.
 
 
 
 
 
173
 
174
+ ## HumanFlow Output
175
+
176
+ > Online markets move fast. If a company wants attention, it needs smart strategy, clear messaging, and content people actually care about.
177
 
178
  ---
179
 
180
+ # Quickstart (Transformers)
181
 
182
  ```python
183
  from transformers import AutoTokenizer, AutoModelForCausalLM
184
  import torch
185
 
186
+ model_id = "randhir302/HumanFlow"
187
 
188
  tokenizer = AutoTokenizer.from_pretrained(model_id)
189
+
190
  model = AutoModelForCausalLM.from_pretrained(
191
  model_id,
192
  torch_dtype=torch.float16,
 
194
  )
195
 
196
  prompt = """
197
+ Rewrite this AI draft into natural human writing without changing meaning:
198
 
199
+ Artificial intelligence is transforming industries worldwide.
200
  """
201
 
202
+ inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
203
 
204
  outputs = model.generate(
205
  **inputs,
206
  max_new_tokens=220,
207
+ temperature=0.75,
208
+ top_p=0.9,
209
+ repetition_penalty=1.1
210
  )
211
 
212
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))