Overview of pdf2markdown
maingptpdf. It replaces the original PDF processing logic with a layout analysis model to identify tables and images. It then utilizes a multimodal large language model (MLLM) to generate content in Markdown format.repository·main·Indexed 25 days ago
https://github.com/wyf3/llm_relatedA flexible, production-ready reinforcement learning training library for large language models, implementing the HybridFlow framework. It supports RL algorithms like PPO and GRPO, integrates with training backends (FSDP, FSDP2, Megatron-LM) and rollout engines (vLLM, SGLang, HF Transformers), and scales up to 671B parameter models. Compatible with models such as Qwen, Llama, Gemma, and DeepSeek, as well as VLMs like Qwen2.5-vl.
gptpdf. It replaces the original PDF processing logic with a layout analysis model to identify tables and images. It then utilizes a multimodal large language model (MLLM) to generate content in Markdown format.The Entropy Mechanism addresses the "entropy collapse" issue in Reinforcement Learning (RL) for Large Language Models (LLMs). During training, policy entropy often drops sharply, causing overconfidence and performance saturation.
To mitigate this, the project proposes two strategies to restrict updates for high-covariance tokens:
CLIP-Cov: Restricts updates based on covariance.KL-Cov: Restricts updates based on KL divergence and covariance.These methods help maintain higher entropy levels, allowing the model to explore more freely and achieve better performance on reasoning benchmarks like AIME, MATH, and OlympiadBench.
verl is a flexible, efficient, and production-ready reinforcement learning (RL) training library designed for large language models (LLMs). It is the open-source implementation of the HybridFlow framework.
Key capabilities include:
The SPIN recipe in verl implements an iterative self-improvement algorithm inspired by the paper "Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models".
Unlike standard PPO, SPIN uses an online DPO (Direct Preference Optimization) approach where the model learns by playing against itself. The process involves:
compute_online_dpo_loss, with the model from previous iterations potentially serving as the reference baseline.verl has migrated from Megatron-LM 0.4 to Megatron-Core (mcore) version 0.11.0. This migration allows the use of the recommended GPTModel class for language models, enabling advanced features like context parallel, expert parallel, and dist_checkpointing.
Currently supported models include:
LlamaForCausalLMQwen2ForCausalLMSupported parallel strategies:
tensor parallelpipeline parallelsequence parallelvirtual pipeline parallelcontext parallelThe Entropy Mechanism addresses entropy collapse in Reinforcement Learning (RL) for Large Language Models (LLMs). Entropy collapse occurs when policy entropy drops sharply, leading to overconfidence and performance saturation.
To mitigate this, two strategies are proposed to restrict updates for high-covariance tokens:
CLIP-Cov: Restricts updates based on covariance.KL-Cov: Restricts updates based on KL divergence and covariance.These methods help maintain higher entropy levels during training, allowing for better exploration and improved performance on reasoning benchmarks.
HuggingFaceTB/SmolLM2-135M) on a consumer GPU with only 8GB of VRAM.This project implements methods to prevent entropy collapse in Reinforcement Learning (RL) for Large Language Models. Entropy collapse occurs when policy entropy drops sharply during training, leading to overconfidence and performance saturation.
To alleviate entropy collapse, the project proposes two strategies that restrict updates for high-covariance tokens:
CLIP-Cov: Restricts updates based on covariance.KL-Cov: Restricts updates based on KL divergence and covariance.