Run this model with HF Jobs
Run Aizk/Qwen3.8-27B-humanizer-sft on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Aizk/Qwen3.8-27B-humanizer-sft. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Aizk/Qwen3.8-27B-humanizer-sft on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Aizk/Qwen3.8-27B-humanizer-sft. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Aizk/Qwen3.8-27B-humanizer-sft. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Aizk/Qwen3.8-27B-humanizer-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aizk/Qwen3.8-27B-humanizer-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Aizk/Qwen3.8-27B-humanizer-sft") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Aizk/Qwen3.8-27B-humanizer-sft") model = AutoModelForMultimodalLM.from_pretrained("Aizk/Qwen3.8-27B-humanizer-sft", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Aizk/Qwen3.8-27B-humanizer-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Aizk/Qwen3.8-27B-humanizer-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Aizk/Qwen3.8-27B-humanizer-sft", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Aizk/Qwen3.8-27B-humanizer-sft
- SGLang
How to use Aizk/Qwen3.8-27B-humanizer-sft 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 "Aizk/Qwen3.8-27B-humanizer-sft" \ --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": "Aizk/Qwen3.8-27B-humanizer-sft", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Aizk/Qwen3.8-27B-humanizer-sft" \ --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": "Aizk/Qwen3.8-27B-humanizer-sft", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Aizk/Qwen3.8-27B-humanizer-sft with Docker Model Runner:
docker model run hf.co/Aizk/Qwen3.8-27B-humanizer-sft
Qwen3.8 27B: humanizer tweet writer (stage-1 SFT, merged)
Qwen/Qwen3.8-27B fine-tuned to turn a short rough "spark" (8-18 words) into a tweet written the way people actually write on X.
It reproduces stage 1 (SFT) of poseljacob/Inkling-2-Mini-tweet-v5 on an open model, trained in one Run Job on a single AMD MI325X (Featherless GPU Cloud).
Full bf16 weights: the LoRA is merged into the base checkpoint at commit 37561816e66b (Nov 7, 2026). Same architecture (Qwen3_5ForConditionalGeneration), tensor names and shard layout as the base repo; only the language model's linear layers differ, the vision tower is unchanged.
Training
- Data:
writer_train_v5.jsonlfrom poseljacob/tweet-human-vs-ai-v5 (MIT): 619 real tweets from 64 accounts, each paired with a spark. - LoRA r=32, alpha=32, on every linear layer of the language model only. Loss on the tweet tokens only.
- 3 epochs, batch 16, AdamW (0.9, 0.95), per-epoch LR 9e-5 / 6e-5 / 3e-5, bf16, gradient checkpointing.
- transformers 5.24.1 + peft 0.22.0. 117 steps, 367 s of training, 537 s total (job
j5x9vbr6h3), peak 71.8 GiB, ~$0.35.
Eval (71 held-out sparks, 10 unseen authors, one sample each at temperature 0.72)
Mean p(human) from the Inkling v5 3-model human-vs-AI detector:
| Base | This model | Claude Opus 5.5 | Real human tweets | |
|---|---|---|---|---|
| Detector mean p(human) | 16.5% | 33.8% | 16.0% | 59.5% |
| Avg chars | 179.2 | 194.1 | 217.8 | 185.7 |
Per-row base and tuned outputs are in eval_outputs.json.
Known issue: the SFT stage teaches voice, not accuracy. It sometimes drifts from the spark or invents details (e.g. "PR shipping" becoming a PR team, a made-up "video" link). The original recipe adds a ReST stage with a logic/faithfulness gate for this, which isn't included here.
Use
System prompt plus a Spark: ... user message is the exact training format. Sample at temperature ~0.7, thinking off.
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
REPO = "Aizk/Qwen3.8-27B-humanizer-sft"
tok = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForImageTextToText.from_pretrained(REPO, dtype=torch.bfloat16, device_map="cuda")
SYSTEM = "Turn a short rough spark into a tweet that sounds completely like a real person typing on X. Keep it sharp, direct, and natural — never like a marketer, AI assistant, or LinkedIn post. Stay faithful to the actual point and facts in the spark without inventing numbers, models, URLs, or @handles. Hard rules: no 'not X, it's Y' antithesis, no 'The #1 reason...', 'What if you...', 'Why? Because...', 'Here's how...', 'Fix:', em-dashes, or hashtags. Output only the tweet."
msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": "Spark: fine-tuned a 31B on one MI325X in 8 minutes, 34 cents"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, enable_thinking=False, return_tensors="pt", return_dict=True).to("cuda")
out = model.generate(**ids, max_new_tokens=240, do_sample=True, temperature=0.72)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))
- Downloads last month
- 54