Text Generation
Transformers
Safetensors
English
llama
llama3
humanizer
rewriting
conversational
merged
sft
editorial
Eval Results (legacy)
text-generation-inference
Instructions to use randhir302/HumanFlow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use randhir302/HumanFlow with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="randhir302/HumanFlow") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("randhir302/HumanFlow") model = AutoModelForCausalLM.from_pretrained("randhir302/HumanFlow") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use randhir302/HumanFlow with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "randhir302/HumanFlow" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "randhir302/HumanFlow", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/randhir302/HumanFlow
- SGLang
How to use randhir302/HumanFlow 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 "randhir302/HumanFlow" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "randhir302/HumanFlow", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "randhir302/HumanFlow" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "randhir302/HumanFlow", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use randhir302/HumanFlow with Docker Model Runner:
docker model run hf.co/randhir302/HumanFlow
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,70 +45,64 @@ model-index:
|
|
| 45 |
value: 0.0528
|
| 46 |
---
|
| 47 |
|
| 48 |
-
<
|
| 49 |
-
|
| 50 |
-
<
|
| 51 |
|
| 52 |
# HumanFlow-Llama3-8B
|
| 53 |
|
| 54 |
-
###
|
| 55 |
-
### Converts Robotic AI Text into Natural Human Flow
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
</a>
|
| 61 |
|
| 62 |
-
|
| 63 |
-
<img src="https://img.shields.io/badge/GitHub-Repository-black">
|
| 64 |
-
</a>
|
| 65 |
|
| 66 |
-
|
| 67 |
-
<img src="https://img.shields.io/badge/License-Apache--2.0-blue">
|
| 68 |
-
</a>
|
| 69 |
|
| 70 |
-
|
| 71 |
-
<img src="https://img.shields.io/badge/Model-Llama3--8B-green">
|
| 72 |
-
</a>
|
| 73 |
-
</p>
|
| 74 |
|
| 75 |
-
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
---
|
| 80 |
|
| 81 |
-
# Why HumanFlow?
|
| 82 |
-
|
| 83 |
-
Most AI outputs follow predictable patterns:
|
| 84 |
|
| 85 |
-
|
| 86 |
-
- Repetitive sentence rhythm
|
| 87 |
-
- Detectable structure
|
| 88 |
-
- Robotic transitions
|
| 89 |
-
- Generic emotional tone
|
| 90 |
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
-
|
| 94 |
|
| 95 |
---
|
| 96 |
|
| 97 |
-
# Performance Snapshot
|
| 98 |
|
| 99 |
-
| Metric | Base
|
| 100 |
-
|-------|-----------
|
| 101 |
-
| Human Score | 18% | **99%** |
|
| 102 |
| Natural Tone | Low | **High** |
|
| 103 |
| Rewrite Quality | Basic | **Advanced** |
|
| 104 |
-
| Readability | Generic | **
|
| 105 |
|
| 106 |
---
|
| 107 |
|
| 108 |
-
#
|
| 109 |
|
| 110 |
| Metric | Score |
|
| 111 |
-
|------|------|
|
| 112 |
| BERTScore F1 | **0.8424** |
|
| 113 |
| ROUGE-L | **0.0908** |
|
| 114 |
| Perplexity | **1.5242** |
|
|
@@ -116,44 +110,31 @@ That means output feels written by a real person.
|
|
| 116 |
|
| 117 |
---
|
| 118 |
|
| 119 |
-
#
|
| 120 |
-
|
| 121 |
-
## Structural Humanization
|
| 122 |
-
Changes how ideas are expressed, not just words.
|
| 123 |
-
|
| 124 |
-
## Meaning Preservation
|
| 125 |
-
Keeps intent while improving realism.
|
| 126 |
-
|
| 127 |
-
## Ready for Real Use
|
| 128 |
-
Deploy locally or integrate into apps.
|
| 129 |
-
|
| 130 |
-
---
|
| 131 |
-
|
| 132 |
-
# Ideal Use Cases
|
| 133 |
|
| 134 |
-
-
|
| 135 |
-
-
|
| 136 |
-
-
|
| 137 |
-
- Researchers
|
| 138 |
-
- SaaS tools
|
| 139 |
- Email personalization
|
| 140 |
-
- AI content
|
|
|
|
|
|
|
| 141 |
|
| 142 |
---
|
| 143 |
|
| 144 |
-
# Before vs After
|
| 145 |
|
| 146 |
-
## Input
|
| 147 |
|
| 148 |
> In today’s rapidly evolving digital landscape, it is imperative for organizations to leverage strategic methodologies in order to maximize engagement.
|
| 149 |
|
| 150 |
-
## HumanFlow Output
|
| 151 |
|
| 152 |
> Online markets move fast. If a company wants attention, it needs smart strategy, clear messaging, and content people actually care about.
|
| 153 |
|
| 154 |
---
|
| 155 |
|
| 156 |
-
# Quickstart
|
| 157 |
|
| 158 |
```python
|
| 159 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
@@ -185,4 +166,34 @@ outputs = model.generate(
|
|
| 185 |
repetition_penalty=1.10
|
| 186 |
)
|
| 187 |
|
| 188 |
-
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
value: 0.0528
|
| 46 |
---
|
| 47 |
|
| 48 |
+
<p align="center">
|
| 49 |
+
<img src="https://huggingface.co/randhir302/HumanFlow/resolve/main/humanflow_logofinal.png" width="180">
|
| 50 |
+
</p>
|
| 51 |
|
| 52 |
# HumanFlow-Llama3-8B
|
| 53 |
|
| 54 |
+
### Humanize AI Text with Natural Structure, Flow & Tone
|
|
|
|
| 55 |
|
| 56 |
+
[🤗 Hugging Face Model](https://huggingface.co/randhir302/HumanFlow) •
|
| 57 |
+
[💻 GitHub Repository](https://github.com/iamhero2709/HumanFlow) •
|
| 58 |
+
Apache-2.0 License
|
|
|
|
| 59 |
|
| 60 |
+
---
|
|
|
|
|
|
|
| 61 |
|
| 62 |
+
## Overview
|
|
|
|
|
|
|
| 63 |
|
| 64 |
+
HumanFlow-Llama3-8B is a fine-tuned Llama 3 model designed to transform robotic AI-generated writing into content that feels natural, human, readable, and authentic.
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
+
Instead of replacing words only, HumanFlow improves:
|
| 67 |
|
| 68 |
+
- sentence rhythm
|
| 69 |
+
- structure
|
| 70 |
+
- tone
|
| 71 |
+
- flow
|
| 72 |
+
- readability
|
| 73 |
+
- realism
|
| 74 |
|
| 75 |
---
|
| 76 |
|
| 77 |
+
## Why HumanFlow?
|
|
|
|
|
|
|
| 78 |
|
| 79 |
+
Most AI-generated text feels:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
+
- repetitive
|
| 82 |
+
- over-polished
|
| 83 |
+
- generic
|
| 84 |
+
- predictable
|
| 85 |
+
- emotionally flat
|
| 86 |
|
| 87 |
+
HumanFlow rewrites outputs to feel more organic and naturally written.
|
| 88 |
|
| 89 |
---
|
| 90 |
|
| 91 |
+
## Performance Snapshot
|
| 92 |
|
| 93 |
+
| Metric | Base Model | HumanFlow |
|
| 94 |
+
|--------|-----------|----------|
|
| 95 |
+
| Human-Like Score | 18% | **99%** |
|
| 96 |
| Natural Tone | Low | **High** |
|
| 97 |
| Rewrite Quality | Basic | **Advanced** |
|
| 98 |
+
| Readability | Generic | **Strong** |
|
| 99 |
|
| 100 |
---
|
| 101 |
|
| 102 |
+
## Internal Evaluation
|
| 103 |
|
| 104 |
| Metric | Score |
|
| 105 |
+
|--------|------|
|
| 106 |
| BERTScore F1 | **0.8424** |
|
| 107 |
| ROUGE-L | **0.0908** |
|
| 108 |
| Perplexity | **1.5242** |
|
|
|
|
| 110 |
|
| 111 |
---
|
| 112 |
|
| 113 |
+
## Best Use Cases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
+
- SEO rewriting
|
| 116 |
+
- Blog enhancement
|
| 117 |
+
- Student writing cleanup
|
|
|
|
|
|
|
| 118 |
- Email personalization
|
| 119 |
+
- AI content polishing
|
| 120 |
+
- SaaS integrations
|
| 121 |
+
- Human-style generation pipelines
|
| 122 |
|
| 123 |
---
|
| 124 |
|
| 125 |
+
## Before vs After
|
| 126 |
|
| 127 |
+
### Input
|
| 128 |
|
| 129 |
> In today’s rapidly evolving digital landscape, it is imperative for organizations to leverage strategic methodologies in order to maximize engagement.
|
| 130 |
|
| 131 |
+
### HumanFlow Output
|
| 132 |
|
| 133 |
> Online markets move fast. If a company wants attention, it needs smart strategy, clear messaging, and content people actually care about.
|
| 134 |
|
| 135 |
---
|
| 136 |
|
| 137 |
+
## Quickstart
|
| 138 |
|
| 139 |
```python
|
| 140 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
|
|
| 166 |
repetition_penalty=1.10
|
| 167 |
)
|
| 168 |
|
| 169 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
## Recommended Settings
|
| 173 |
+
|
| 174 |
+
```python
|
| 175 |
+
temperature = 0.75
|
| 176 |
+
top_p = 0.90
|
| 177 |
+
repetition_penalty = 1.10
|
| 178 |
+
max_new_tokens = 700
|
| 179 |
+
|
| 180 |
+
## Roadmap
|
| 181 |
+
|
| 182 |
+
- [x] Public Launch
|
| 183 |
+
- [x] Hugging Face Release
|
| 184 |
+
- [x] Fine-Tuned Base Model
|
| 185 |
+
- [ ] GGUF Quantized Release
|
| 186 |
+
- [ ] HumanFlow Pro API
|
| 187 |
+
- [ ] Browser Editor
|
| 188 |
+
- [ ] Multilingual Version
|
| 189 |
+
|
| 190 |
+
---
|
| 191 |
+
|
| 192 |
+
## Community
|
| 193 |
+
|
| 194 |
+
If HumanFlow helps you:
|
| 195 |
+
|
| 196 |
+
⭐ Like the model
|
| 197 |
+
⭐ Share outputs
|
| 198 |
+
⭐ Benchmark it
|
| 199 |
+
⭐ Build products with it
|