Downloads ยท 30 days
0
chopeace/arxiv-newsbriefing-v4.2
arxiv-newsbriefing-v4.2 is a text generation model from chopeace. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Transform dense academic abstracts into clear, engaging news-style briefings that anyone can understand in 30 seconds.
Downloads ยท 30 days
0
Access
Public
Updated Feb 22, 2026
Repo size
โ
Likes
0
Public
Click a slice to open those files.
.ipynb482 KB ยท 69%
From the Hugging Face model README
Transform dense academic abstracts into clear, engaging news-style briefings that anyone can understand in 30 seconds.
Built on Qwen2.5-1.5B with QLoRA fine-tuning on 1,845 research papers from ArXiv.
This project converts academic research papers into accessible 2-sentence news briefings (~45 words) in the style of NPR/BBC news broadcasts. Designed for science communicators, journalists, educators, and anyone interested in staying current with research.
| Metric | Baseline | v4.2 | Improvement |
|---|---|---|---|
| ROUGE-1 | 0.42 | 0.48 | +14% |
| ROUGE-2 | 0.18 | 0.21 | +17% |
| Format Compliance | 67% | 98.9% | +48% |
| LLM Judge Score | 6.5/10 | 8.6/10 | +32% |
| Avg Word Count | 50.3 | 43.2 | 96% under limit |
| Factual Accuracy | - | 98% | โ Pass |
# Clone repository
git clone https://huggingface.co/chopeace/arxiv-newsbriefing-v4.2
cd arxiv-newsbriefing-v4.2
# Install dependencies
pip install -r requirements.txt
from llama_cpp import Llama
# Load GGUF model
model = Llama(
model_path="ArXiv-NewsBrief-Q4_K_M.gguf",
n_ctx=2048,
n_threads=8
)
# Summarize abstract
abstract = """
We present a novel approach to quantum computing using topological
qubits that achieves 99.9% gate fidelity, significantly improving
upon previous methods.
"""
result = model(
f"Convert this ArXiv abstract into a 2-sentence news briefing: {abstract}",
max_tokens=120,
temperature=0.4
)
print(result['choices'][0]['text'])
# Output: Scientists developed a new quantum computing method using
# topological qubits that achieves record 99.9% accuracy. The breakthrough
# could enable more reliable quantum computers for practical applications.
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load base model
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
# Apply LoRA adapters (after training)
# from peft import PeftModel
# model = PeftModel.from_pretrained(model, "./final_model")
# Prepare input
abstract = "Your research abstract here..."
system_message = "Convert this ArXiv abstract into a 2-sentence news briefing."
messages = [
{"role": "system", "content": system_message},
{"role": "user", "content": abstract}
]
# Generate
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
return_tensors="pt"
)
outputs = model.generate(
inputs,
max_new_tokens=120,
temperature=0.4,
top_p=0.9,
do_sample=True
)
summary = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(summary)
| File | Size | Format | Use Case | Status |
|---|---|---|---|---|
| ArXiv-NewsBrief-Q4_K_M.gguf | 0.9GB | GGUF Q4_K_M | โญ CPU inference | โ Available |
| ArXiv-NewsBrief-Q8_0.gguf | 1.5GB | GGUF Q8_0 | High quality | Coming soon |
# GGUF model is included in this repository
# Or download directly:
wget https://huggingface.co/chopeace/arxiv-newsbriefing-v4.2/resolve/main/ArXiv-NewsBrief-Q4_K_M.gguf
# Set API key for teacher model (Gemini)
export GOOGLE_API_KEY="your-api-key"
# Generate dataset
python scripts/dataset_generator.py
Output: data/processed/train.csv (1,660 samples)
Configuration:
# Full training (MODE 1)
python scripts/sft_train.py
Training Settings:
3-Mode Training System:
python scripts/sft_merge_gguf.py
Output:
ArXiv-NewsBrief-Q4_K_M.gguf (0.9GB) - RecommendedArXiv-NewsBrief-Q8_0.gguf (1.5GB) - High qualityConvert this ArXiv abstract into a concise 2-sentence news briefing.
Requirements:
- Use clear, accessible language without technical jargon
- Maximum 45 words total
- Exactly 2 sentences
- Style: NPR/BBC news broadcast tone
- No hallucinations: only use information from the abstract
- Focus on practical implications and significance
Format:
[Sentence 1: Main finding/innovation in simple terms]
[Sentence 2: Significance/implications for practical applications]
# Base Model
base_model = "Qwen/Qwen2.5-1.5B-Instruct"
# LoRA Configuration
lora_r = 16
lora_alpha = 32
lora_dropout = 0.05
target_modules = ["q_proj", "k_proj", "v_proj", "o_proj"]
# Training
num_epochs = 5
learning_rate = 2e-4
per_device_train_batch_size = 4
gradient_accumulation_steps = 2
max_seq_length = 512
# Generation
temperature = 0.4
top_k = 40
top_p = 0.9
max_new_tokens = 120
arxiv-newsbriefing-v4.2/
โโโ README.md # This file
โโโ LICENSE # Apache 2.0
โโโ requirements.txt # Dependencies
โโโ QUICKSTART.md # Quick start guide
โ
โโโ ArXiv-NewsBrief-Q4_K_M.gguf # โญ GGUF model (CPU-optimized)
โ
โโโ scripts/
โ โโโ dataset_generator.py # Multi-LLM data generation
โ โโโ sft_train.py # 3-mode QLoRA training
โ โโโ sft_merge_gguf.py # Merge & GGUF conversion
โ โโโ web.py # Streamlit web interface
โ
โโโ data/
โ โโโ processed/
โ โ โโโ train.csv # 1,660 training samples
โ โ โโโ validation.csv # 185 validation samples
โ โโโ teacher_prompt.md # System prompt template
โ
โโโ samples/
โ โโโ example_outputs.md # Sample model outputs
โ
โโโ docs/ # Detailed documentation
โ โโโ DATASET_CONSTRUCTION.md
โ โโโ TRAINING_GUIDE.md
โ โโโ LLM_JUDGE_GUIDE.md
โ โโโ UV_GUIDE.md
โ
โโโ reports/
โโโ evaluation/ # Quality assessment
โ โโโ chatgpt_result_v4.2.md
โ โโโ claude_result_v4.2.md
โ โโโ LLM-as-a-Judge.md
โโโ training/ # Training logs
โ โโโ colab_train_result_v4.2.md
โโโ colab/ # Jupyter notebooks
โโโ Dataset_Generater_V4_2.ipynb
โโโ V4_0_SFT_DATASET_maker.ipynb
โโโ DATA_Merger_GGUF.ipynb
| Metric | Score | Description |
|---|---|---|
| ROUGE-L | 0.42 | Longest common subsequence |
| ROUGE-1 | 0.48 | Unigram overlap |
| ROUGE-2 | 0.21 | Bigram overlap |
| BERTScore | 0.88 | Semantic similarity |
| Format Compliance | 98.9% | 2 sentences, โค45 words |
Format Evaluation (50 points):
Content Evaluation (50 points):
Average Score: 86/100
| Environment | Hardware | Speed | Throughput |
|---|---|---|---|
| CPU | 16 cores | 3-4s | 15-20/min |
| GPU | T4 (16GB) | 1s | 60/min |
| GPU | A100 | 0.5s | 120/min |
| Format | Size | Memory | Quality | Use Case |
|---|---|---|---|---|
| FP16 | 3.0GB | 6GB | 100% | Training |
| Merged | 3.0GB | 3GB | 100% | GPU inference |
| Q4_K_M | 0.9GB | 1GB | 98% | โญ CPU deployment |
| Q8_0 | 1.5GB | 2GB | 99% | High quality |
All training artifacts can be recreated:
# Step 1: Generate training data
python scripts/dataset_generator.py
# Output: data/processed/train.csv
# Step 2: Train LoRA
python scripts/sft_train.py
# Output: ./final_model/
# Step 3: Merge and convert
python scripts/sft_merge_gguf.py
# Output: ArXiv-NewsBrief-Q4_K_M.gguf
Cost: ~$0.50 (Google Colab A100)
Time: ~50 minutes
transformers>=4.46.0
torch>=2.0.0
peft>=0.13.0
bitsandbytes>=0.43.0
datasets>=3.2.0
accelerate>=1.2.0
llama-cpp-python # For GGUF inference
# Reduce batch size in scripts/sft_train.py
per_device_train_batch_size = 2 # default: 4
# Increase threads
n_threads = 16 # use all CPU cores
# Create .env file
echo "GOOGLE_API_KEY=your-key" > .env
Apache 2.0 - Free to use, modify, and distribute with attribution
See LICENSE for details.
Author: Peace Cho ([email protected])
If you use this model in your research, please cite:
@software{arxiv_newsbriefing_2025,
author = {Peace Cho},
title = {ArXiv NewsBriefing: Transform Academic Papers into News Briefings},
year = {2025},
version = {4.2},
publisher = {Hugging Face},
url = {https://huggingface.co/chopeace/arxiv-newsbriefing-v4.2}
}
If you find this project useful:
Built with โค๏ธ using Qwen2.5, QLoRA, and Hugging Face Transformers
Quick Start โข Training โข Evaluation โข Documentation
</div>