baidu

Activity

Stars and mentions · Last 30 days, Oct 8 – Nov 6

GitHub stars2,809
Mentions31
0145290435580Oct 8Oct 22Nov 6
UTC days · repositories baidu owns13 repositories

Top repositories

baidu’s repositories ranked by new forks, as on trending.

Loading

Contributes to

Repositories outside baidu’s account where baidu opened or reviewed pull requests in the past 365 days.

Who noticed baidu

Everyone who starred or forked baidu’s repositories since the archive began in 2011.

Notable accounts

Ordered by the stars their own repositories have received.

Biggest fans

Accounts that starred the most of these repositories.

Breakout weeks

Each repository’s best week of new stars, with the release published around it.

Mentions

30posts
Nov 70 posts
  1. Baidu's ERNIE-5.5-Flash-Base: can you self-host a 280B open model, and who is allowed to? TL;DR Baidu published ERNIE-5.5-Flash-Base on Hugging Face on November 5: a 280B-parameter mixture-of-experts base model with 14B active parameters per token, trained on 33.5T tokens. The FP8 repository is 288.4 GB (measured from the file listing), so it fits on eight 80 GB GPUs with room to spare and on four 80 GB GPUs only with about 32 GB of headroom for everything else. The attention design is the interesting engineering part: by my estimate from the published config, one 1,048,576-token sequence needs roughly 5 GB of KV cache at FP8, against about 185 GB for a conventional full-attention stack of the same depth. The harder question is not memory. The license (ERNIE 5.5 Flash Base Model License Agreement v1.0) grants rights only in a "Territory" that excludes the European Union, the United Kingdom and South Korea, forbids using outputs to improve any other model, and counts the full revenue of any product that uses the model when it decides which commercial tier you are in. Read it before you plan a deployment. Everything below marked "my estimate" or "illustrative" is arithmetic I did from the public config and stated assumptions. Benchmark numbers are Baidu's own, from the model card. What did Baidu actually release? Two repositories, both public and ungated: baidu/ERNIE-5.5-Flash-Base in FP8 and baidu/ERNIE-5.5-Flash-Base-BF16. Both are 128 safetensors shards. It is a text-only base checkpoint taken at the end of pre-training, before any mid-training or post-training, so it will complete text rather than follow chat instructions. The README says to call the completions endpoint, not chat. | Item | Value (source: model card and config) | |---|---| | Total / active parameters | 280B / 14B per token | | Layers | 43 (1 dense FFN, 42 MoE) | | Experts | 512 routed (top-10) plus 1 shared per MoE layer | | Hidden size / vocabulary | 4,096 / 201,216 | | Pre-training | 33.5T tokens, up to 128K context | | Inference context | 1,048,576 tokens enabled in the released config | | License | custom, "license: other" on the Hub | Per the Hub metadata the FP8 repo holds 286.2B parameters in total, almost all of them stored as FP8 (E4M3) with block scales. Adding up the stored dtypes gives 288.35 GB, which matches the 288.43 GB shard total within rounding. How much GPU memory does it need? Weights first, because they are the floor. This is the measured file size against the memory pools people actually own: | Setup | Pool | Free after FP8 weights (288.4 GB) | Free after BF16 weights (572.9 GB) | |---|---|---|---| | 4 x 80 GB | 320 GB | 31.6 GB | does not fit | | 8 x 80 GB | 640 GB | 351.6 GB | 67.1 GB | | 4 x 141 GB | 564 GB | 275.6 GB | does not fit (short by 8.9 GB) | | 8 x 141 GB | 1,128 GB | 839.6 GB | 555.1 GB | !ERNIE-5.5-Flash-Base weight files against GPU memory pools The 4 x 80 GB row is where people will be tempted, because the README's launch commands use four-way parallelism. Keep in mind that 31.6 GB of free memory has to cover activations, CUDA graphs, communication buffers, the KV cache for every concurrent request, and per-GPU imbalance. It can work for short contexts and low concurrency, but it is not a comfortable production target. Eight 80 GB GPUs or four 141 GB GPUs are the first setups where the weights stop being the main constraint. The SGLang cookbook linked from the README preselects a B300 single-node FP8 low-latency recipe, so Baidu's own reference path is on newer hardware than H100. Here is a short script that reproduces the weight number from Hub metadata, so you can rerun it for any checkpoint: import json, urllib.request def get(url): return json.load(urllib.request.urlopen(url)) repo = "baidu/ERNIE-5.5-Flash-Base" params = get(f"https://huggingface.co/api/models/{repo}")["safetensors"]["parameters"] bytes_per = {"F8_E4M3": 1, "BF16": 2, "F16": 2, "F32": 4} weights_gb = sum(n * bytes_per[d] for d, n in params.items()) / 1e9 print(f"{sum(params.values())/1e9:.1f}B params, {weights_gb:.1f} GB of weights") Why is the KV cache so small at a million tokens? This is the part of the design that changes serving cost. According to the model card, 37 of the 43 layers use Heavily Compressed Attention (HCA), which caches one entry per 128 tokens, and 6 layers (one in seven) use multi-head latent attention with sparse attention (MLA plus DSA) to keep full-context access. The config agrees: compress_ratios has 37 entries of 128, and the remaining entries mark the non-compressed layers. The config also lists kv_lora_rank of 512, a 64-dimension rope part, and a sparse-attention indexer with 128-dimension heads. My estimate for one 1,048,576-token sequence, with the assumptions spelled out: - MLA layers: (512 latent + 64 rope) values per token per layer, 6 layers, 1 byte each at FP8. That is 3.62 GB. - Indexer keys: 128 values per token per MLA layer, 6 layers, 1 byte each. That is 0.81 GB. - HCA layers: one KV entry per 128 tokens, which I assume is one head of dimension 512 for keys and 512 for values (1,024 bytes at FP8), across 37 layers. That is 0.31 GB. - Total: about 4.7 GB at FP8, about 9.5 GB at BF16. For scale, a hypothetical full-attention stack with the same 43 layers and a typical grouped-query layout (8 KV heads of dimension 128, BF16) would need 43 x 2 x 8 x 128 x 2 bytes = 176 KB per token, or about 185 GB for the same million tokens. I made that baseline up to give a yardstick, it is not any specific model. Against it, the ERNIE layout is roughly 20x smaller in BF16 and 39x smaller in FP8. !Illustrative KV cache for one million tokens, log scale There are two caveats. First, my HCA entry size is a guess about the implementation, so treat the 0.31 GB as an order of magnitude. Second, I left out the sliding window of 128 full-resolution tokens the config lists, which adds only a few megabytes per sequence. Even if I am off by 2x on everything, the conclusion holds: the KV cache stops being the thing that limits concurrency at long context, and the weights do. The README's vLLM command also sets --kv-cache-dtype fp8. How fast can it decode? A bandwidth ceiling Decode on a large MoE is a memory-bandwidth problem, and the interesting variable is batch size. At batch 1 you read only the experts the token routed to, about 14 GB of FP8 weights. As more sequences share a step, the union of experts touched grows, and with 512 experts and top-10 routing it grows fast. From the config, each routed expert has three 2,048 x 2,048 matrices (my assumption: a gated unit), so 12.6M parameters per expert and about 270.6B routed-expert parameters across 42 layers. That leaves roughly 15.7B parameters elsewhere, of which about 8.7B are read per token. The two pieces add up to the advertised 14B active. Under uniform random routing, the fraction of experts touched at batch B is 1 - (1 - 10/512)^B: | Batch | Experts touched | Weights read per step | Step time (4 x H100, 13.4 TB/s) | Aggregate ceiling | Per-stream ceiling | |---|---|---|---|---|---| | 1 | 2% | 14.0 GB | 1.04 ms | 957 tok/s | 957 tok/s | | 8 | 15% | 48.2 GB | 3.60 ms | 2,223 tok/s | 278 tok/s | | 32 | 47% | 135.4 GB | 10.1 ms | 3,168 tok/s | 99 tok/s | | 128 | 92% | 257.6 GB | 19.2 ms | 6,658 tok/s | 52 tok/s | | 512 | 100% | 279.3 GB | 20.8 ms | 24,565 tok/s | 48 tok/s | !Illustrative bandwidth ceiling for ERNIE-5.5-Flash-Base decode on four H100 GPUs This is a ceiling, not a benchmark. It assumes perfect sharding across four GPUs with 3.35 TB/s each, no communication cost, no attention or KV reads, and uniformly random routing. Real routing is skewed, which touches fewer experts and helps, but all-to-all expert communication and kernel overheads hurt much more. The useful reading is the shape: per-stream speed collapses from about 960 to under 60 tokens per second between batch 1 and batch 128, while aggregate throughput rises about 7x. If you serve a latency-sensitive product, you are choosing a point on this curve, and you will want to measure on your own hardware with your own traffic. How does it compare on benchmarks? Baidu's table compares ERNIE-5.5-Flash-Base with DeepSeek-V4-Flash-Base (284B-A13B), Hy3-preview-Base (295B-A21B) and MiMo-V2.5-Base (310B-A15B), all run through the same pipeline, prompts and few-shot settings. These are the vendor's own numbers and I have not reproduced them. | Benchmark | ERNIE-5.5-Flash-Base | DeepSeek-V4-Flash-Base | |---|---|---| | MMLU (5-shot) | 93.3 | 89.4 | | MMLU-Pro (5-shot) | 78.4 | 69.2 | | GPQA (5-shot) | 60.2 | 55.9 | | HumanEval+ (1-shot) | 82.3 | 69.5 | | LiveCodeBench (1-shot) | 40.1 | 31.9 | | ChineseSimpleQA | 73.0 | 75.3 | | HELMET-Rerank | 56.2 | 60.0 | | InfiniteBench | 46.5 | 48.0 | ERNIE leads on most rows, but not all of them: the DeepSeek base is ahead on ChineseSimpleQA, HELMET-Rerank, InfiniteBench and INCLUDE-lite (79.8 against 79.5). A base-model few-shot table also says little about how the model behaves after you fine-tune it, which is the intended use here. What does the license actually allow? I am not a lawyer and this is a plain reading of the text in the repository, so check it with counsel before shipping. These are the clauses that change deployment decisions: - Territory (sections 1.11, 2, 5.3). Rights are granted only in "all geographical areas worldwide other than the European Union, the United Kingdom and South Korea." Using, running, or distributing the model or its outputs outside the Territory is outside the grant. For a company serving users in those regions, that is a blocker, not a footnote. - Revenue tiers (section 4). Non-commercial use is free. Commercial use is free of model fees up to US$50 million in annual revenue, with a "Powered by ERNIE" notice and a one-time use notice by email. Above US$50 million you need prior written authorization, and fees are set by separate agreement. - How revenue is counted (section 1.7). It is the revenue of every related product that uses or relies on the model, and if that product also uses other models, its entire revenue counts, not just a share. Affiliates under common control are aggregated. It is assessed continuously over trailing 12 months, not per calendar year. - Hosting counts as commercial (section 1.8). API services, hosted inference and fine-tuning services are listed as commercial use. - No improving other models (section 5.5). You may not use the weights or any outputs to improve any other AI model or ML system, except the model's own derivatives. That rules out using ERNIE outputs as distillation or synthetic training data for a different model family. - Acceptable use highlights (Exhibit A). Includes a ban on military use, on high-stakes automated decisions in areas such as healthcare, credit, employment and law enforcement, and a requirement to clearly label machine-generated material published in public settings, including code and posts from automated accounts. - Law and venue (section 9). Hong Kong law, exclusive jurisdiction of Hong Kong courts. The practical consequence is that "open weights" here means something narrower than it does for permissively licensed models. If you are building on it, the license belongs in the same review as the memory budget. How would you launch it? These are the commands from the model card. I have not run them, so I cannot vouch for performance on your cluster. # SGLang sglang serve \ --model-path baidu/ERNIE-5.5-Flash-Base \ --tp 4 --attn-dp-size 4 \ --context-length 131072 \ --max-running-requests 1024 --port 30000 # vLLM (needs the ERNIE plugin) uv pip install vllm==0.32.0 uv pip install git+https://github.com/baidu/vLLM-ERNIE.git vllm serve baidu/ERNIE-5.5-Flash-Base \ --kv-cache-dtype fp8 --enable-expert-parallel \ --data-parallel-size 4 --max-model-len 131072 --port 30000 \ --moe-backend humming Both examples cap context at 131,072 tokens even though the config enables 1,048,576. Given the KV estimate above, the cap looks like a conservative default rather than a memory necessity, but test long-context quality yourself before you rely on it: the training context was 128K, and the model card says 1M is supported in fine-tuning and inference. FAQ How much GPU memory does ERNIE-5.5-Flash-Base need? The FP8 weights are 288.4 GB and the BF16 weights are 572.9 GB, measured from the Hub file listing. Add KV cache, activations and buffers on top. Eight 80 GB GPUs is the first comfortable FP8 setup. Is ERNIE-5.5-Flash-Base an instruction model? No. It is a pre-training checkpoint. The model card positions it as a starting point for domain adaptation, instruction tuning and reinforcement-learning research, and says to serve it through the completions endpoint. Can companies in the EU, UK or South Korea use it? Under the license text, rights are granted only outside those three regions, and use or distribution outside the Territory is not authorized. Confirm with a lawyer for your situation. Is it free for commercial use? Free of model license fees up to US$50 million in annual revenue of related products, with the "Powered by ERNIE" notice and a one-time use notice. Above that threshold you need prior written authorization from Baidu. Why is the KV cache so small? Per the model card, 37 of 43 layers use heavily compressed attention that caches one entry per 128 tokens, and only 6 layers keep full-context access. My estimate is about 5 GB at FP8 for a million-token sequence, which depends on implementation details I assumed. Are the benchmark numbers independent? No. They are reported by Baidu in the model card, run through one pipeline for four models, and I have not reproduced them. Further reading - Mistral Large 4 on your own GPUs: does 1 trillion parameters fit on 8 H200s - Ling-3.1-flash and the 7:1 hybrid: how much KV cache does a 560B model need at 1M tokens? Sources: model card, config.json, license, MarkTechPost coverage.

  2. How to Run ERNIE 5.5 Flash Base Locally (8 H100s or 2 B300s, and It Won't Chat) ERNIE 5.5 Flash Base won't chat with you. Baidu's new 280B open-weight model on Hugging Face is the raw end-of-pre-training checkpoint, it's served through /v1/completions, the smaller of its two repos is a 288 GB download, and just holding the weights takes two 288 GB GPUs or eight 80 GB ones. If you want to run ERNIE 5.5 Flash Base locally and point a chat UI at it, save your bandwidth. If you fine-tune, it's worth a look: on Baidu's own table it beats DeepSeek V4 Flash Base on 26 of 30 benchmarks. DeepSeek's repo ships MIT, though, and Baidu's license forbids use in the EU, the UK and South Korea. I haven't run this model. The technical details below come from the release page, the model card, Baidu's plugin README, the SGLang cookbook and the license text. Anything else is linked or named where I use it, and the couple of memory numbers I worked out myself are labeled as mine. What Baidu released on Hugging Face - 280B total parameters, 14B active per token, 43 layers (release page) - 33.5T tokens of pre-training, with no mid- or post-training - Trained on contexts up to 128K tokens, with up to 1M for inference and fine-tuning - FP8 repo at 288 GB, BF16 repo at 573 GB Chat, reasoning and tool calling belong to ERNIE-5.5-Flash, which the plugin README lists as "Coming soon". Six of the 43 layers use MLA with DSA sparse attention, and the other 37 use Heavily Compressed Attention, which folds every 128 tokens into one cache entry plus a 128-token sliding window. Every layer but the first is MoE, with 512 routed experts (top-10) and one shared expert. ECHO replaces the multi-token prediction module by reusing the final layer to predict future tokens, and that same layer doubles as the speculative-decoding draft model. Baidu claims a higher draft acceptance rate than an auxiliary MTP module but publishes no number for it. How much VRAM does ERNIE 5.5 Flash Base need? The model card gives no VRAM figure and never mentions GGUF. Its examples just assume 4-way parallelism. The numbers are in the vLLM-ERNIE README and the SGLang cookbook: | GPU memory | FP8 | BF16 | |---|---|---| | 288 GB (B300) | 2 GPUs | 4 GPUs | | 192 GB (B200) | 4 GPUs | 8 GPUs | | 80 GB (H100) | 8 GPUs | 2 nodes × 8 GPUs | The README describes these as the smallest counts that hold the weights, so budget extra for KV cache. The cookbook says its single-node FP8 recipes are verified on every platform it lists, while BF16 is verified only on B300. The 1M context doesn't fit on 80 GB GPUs at all; the README tops out at --max-model-len 262144 there. The plugin only runs on NVIDIA GPUs, too. 14B active won't save you, because all the experts still have to live somewhere. As horsawlarway put it on HN: "Active parameter count really drives inference speed not ram requirements." By my own arithmetic, a 4-bit quant of the 288 GB FP8 repo would be about 144 GB of weights, and 6-bit about 216 GB. The same HN commenter estimates 175 GB at 4-bit and about 244 GB at 6-bit with the full 1M context, and the cookbook's "tens of GB" of activation memory for a 1M prefill makes that plausible. So the 2×128 GB box Tepix mentioned in the thread works on paper at 4-bit, but I found no GGUF or 4-bit build to load on it. The README lists an FP4 build only for the unreleased ERNIE-5.5-Flash. How to run ERNIE 5.5 Flash Base with vLLM Skip the plain pip install vllm snippet Hugging Face shows you. The README says a missing plugin gets you Model architectures ['Ernie5_5_MoeForCausalLM'] are not supported. An unpinned install also gets you vLLM 0.33.0 today, and the plugin pins 0.32.0. Use the card's deployment steps: uv venv --python 3.12 ernie5-venv source ernie5-venv/bin/activate uv pip install vllm==0.32.0 uv pip install git+https://github.com/baidu/vLLM-ERNIE.git vllm serve baidu/ERNIE-5.5-Flash-Base \ --kv-cache-dtype fp8 \ --enable-expert-parallel \ --data-parallel-size 4 \ --max-model-len 131072 \ --port 30000 \ --moe-backend humming Things to change for your setup, all from the README: - The README exports VLLM_ENGINE_READY_TIMEOUT_S=3600 before every serve command and the card doesn't. I'd copy it. - --moe-backend humming is for Blackwell. Drop it on Hopper. - On 80 GB GPUs, use --data-parallel-size 8 and --gpu-memory-utilization 0.93. - For 1M context, set --max-model-len 1048576, lower --gpu-memory-utilization from 0.92 to 0.85 and reduce --max-num-seqs. The README assumes 184 GiB GPUs for those values and gives no number for the last flag. - ECHO drafting is on in the README's commands but not in the card's. Add --speculative-config '{"method":"mtp","num_speculative_tokens":2}' to match. - Those README commands bind 0.0.0.0 with no auth. Add --api-key or bind 127.0.0.1 unless you trust the network. How to run it with SGLang The card's deployment section uses a dedicated image, while Hugging Face's generic snippet uses latest: docker run -d -it --name ernie55 \ --gpus all \ --network host \ --ipc host \ -v ~/.cache/huggingface:/root/.cache/huggingface \ lmsysorg/sglang:dev-ernie-55-flash sglang serve \ --model-path baidu/ERNIE-5.5-Flash-Base \ --tp 4 \ --attn-dp-size 4 \ --context-length 131072 \ --max-running-requests 1024 \ --host 0.0.0.0 \ --port 30000 That's the card's command. The cookbook's recipes use --max-running-requests 256, so size it to your workload. For 1M, the cookbook says to pass --context-length 1048576 and drop --max-running-requests to single digits on 2×B300. This command also binds 0.0.0.0 on the host network, so the same auth warning applies. Calling /v1/completions: few-shot prompts instead of chat For few-shot use, the cookbook says to put the examples in the prompt and set a stop sequence. The README adds that you should pass "temperature": 0 for greedy decoding, since vLLM doesn't apply do_sample. I built this sketch from those two notes and haven't run it: curl http://localhost:30000/v1/completions \ -H "Content-Type: application/json" \ -d '{ "model": "baidu/ERNIE-5.5-Flash-Base", "prompt": "Q: Capital of France?\nA: Paris\n\nQ: Capital of Japan?\nA: Tokyo\n\nQ: Capital of Canada?\nA:", "max_tokens": 16, "temperature": 0, "stop": ["\n\n"] }' The README says the tokenizer prepends <|ERNIE_MASK|> (id 2) to completions prompts by itself, so don't add it to the prompt. In Transformers, load the BF16 repo and keep add_special_tokens=True. The release page calls this the BOS token, but tokenizer.json prepends <|ERNIE_MASK|> there too, while tokenizer_config.json names <|ERNIE_BEGIN|> as bos_token. If you hand-roll inputs, match the tokenizer. ERNIE 5.5 Flash Base vs DeepSeek V4 Flash Base, on Baidu's numbers These are vendor results, with the same harness, prompts and judge across all four models. I didn't find an independent run. Most are few-shot scores, so a bare prompt won't reproduce them. | Benchmark | ERNIE 5.5 Flash | DeepSeek V4 Flash | Hy3 preview | MiMo V2.5 | |---|---|---|---|---| | MMLU-Pro | 78.4 | 69.2 | 66.9 | 65.7 | | GPQA | 60.2 | 55.9 | 50.2 | 51.4 | | HumanEval+ | 82.3 | 69.5 | 78.0 | 74.4 | | LiveCodeBench | 40.1 | 31.9 | 33.5 | 32.4 | | ChineseSimpleQA | 73.0 | 75.3 | 73.2 | 68.8 | | InfiniteBench | 46.5 | 48.0 | 33.0 | 46.7 | ERNIE tops 24 of 30 rows overall. The 12.8-point HumanEval+ gap over DeepSeek is the number I'd want someone to reproduce first. It wins four of the six long-context rows and loses InfiniteBench and HELMET-Rerank, both to DeepSeek, which is a mixed result for a model advertising 1M tokens. input_sh on HN: "They're comparing it to Deepseek-v4-Flash, not 4.1 and not the 4.1 1017 update". I think that complaint only half lands. Tepix points out that V4.1 Flash is twice the size: DeepSeek's card lists 552B backbone parameters plus a 196B Engram memory. That card benchmarks a DeepSeek-V4.1-Flash-Base, but I couldn't find a public repo for it. A 284B base model you can actually download is the fair opponent here. And halJordan's "benchmaxxed to hell" stays an open accusation until someone runs these independently. The ERNIE 5.5 Flash Base license excludes the EU, UK and South Korea Per the ERNIE license: - The territory excludes the EU, the UK and South Korea, and the ban covers the model, derivatives and their outputs. - Non-commercial use is free. Commercial use at or below US$50 million in related annual revenue needs a one-time notice and a "Powered by ERNIE" attribution. Above that, you need written authorization first. - Fine-tuning and quantization both count as creating a Derivative Model. So does distilling from it or training another model on its synthetic output (§1.5). - You can't use the model or its outputs to improve any AI system other than the model and its Derivative Models (§5.5). Those last two clauses bother me most. As I read them, anything you train on ERNIE's outputs falls under Baidu's terms, territory limit included. I'm not a lawyer, but a base model is supposed to be a starting point, and this one follows you downstream. DeepSeek V4 Flash Base has an MIT LICENSE file in a 295 GB repo, about the same download. My call: if you're outside the excluded regions and fine-tuning for internal use, ERNIE is the one to evaluate first, because those code and exam gaps are large enough to survive some vendor optimism. If you're in the EU, redistributing weights, or generating training data for anything else, take DeepSeek. If you just want a local assistant, wait for ERNIE-5.5-Flash. Would you fine-tune under Baidu's license for those HumanEval+ points, or take DeepSeek's MIT checkpoint and give them up? And if you've squeezed this onto 2×128 GB without a GGUF, how did you quantize it?

  3. Baidu’s Unlimited OCR 2 targets long-document parsing. Its own docs say the raw output isn’t Markdown; a separate script converts it. baidu/Unlimited-OCR Would you trade a flashy demo for reliable tables and page boundaries? @grok t.co

    3 likes · 54 views
  4. Reddit · · r/BestGitHubRepos · u/company_url_finder · baidu/Unlimited-OCR

    Unlimited OCR Works: Pioneering the OCR-3.0 Era, From Long- to Unlimited-Horizon Parsing (30k stars) What it does All text below is quoted directly from the project README. >Unlimited OCR Works: Welcome the Era of One-shot Long-horizon Parsing. What's New in 2: - Sparse Reference Sliding Window Attention (SR-SWA): Compresses text-visual attention interactions from ultra-long sequences down to a fixed-size set of working references (e.g., 512 tokens). This bounds computational complexity, keeping per-step decoding latency and memory footprint nearly constant regardless of document length. - From Long- to Unlimited-Horizon Parsing: Powered by SR-SWA, Unlimited-OCR 2 achieves true, unbounded document parsing within a finite context window, effectively eliminating quadratic attention scaling and memory bottlenecks as documents grow. - Ultra-Long Document Parsing SOTA: Achieves state-of-the-art performance across both dozens-of-pages benchmarks (e.g., MPDocBench) and extreme hundred-page benchmarks (e.g., MarathonDocBench). - Unlimited OCR 2 supports Transformers (native, for quick tests) and SGLang (recommended for serving). >All pages of a document are parsed in one request, so the model can use cross-page context. Repository baidu/Unlimited-OCR Repository stats |Metric|Value| |:-|:-| |Stars|29,629| |Forks|3.2k| |Last release|None| |Languages|Python 100%| |Contributors|3| |AI contributor accounts (Claude / Codex / Cursor / Copilot)|None| |AI co-authored commits|None| Main contributor |Field|Value| |:-|:-| |Name|Youyang Yin| |GitHub|@MurphyYin| |Commits to this repo|16 (top contributor)| |Bio|Research Intern at Baidu Inc.| |Company / Location|Beihang University / Beijing, China| |Followers|241| ────────────────────────────── 📌 How many great GitHub repos have you discovered and completely forgotten about? Don't let another useful tool disappear into your Reddit feed. Get the community's best repos, organized by category, plus key takeaways from real developer discussions, delivered to your inbox twice a week. 📬 Never lose track of great repos again. Subscribe free.

    40 points
  5. Unlimited OCR Works 2: Pioneering the OCR-3.0 Era: From Long- to Unlimited-Horizon Parsing 百度的光学字符识别 Unlimited OCR 模型升级版 - 保持每一步解码的延迟和内存占用几乎保持恒定,不被文档长度影响 - 无限上下文识别 - 到达同类模型的顶尖水平 GitHub: baidu/Unlimited-OCR Hugging Face: huggingface.co ModelScope: modelscope.cn

  6. Baidu открыла исходники Unlimited-OCR 2 — модель читает тысячи страниц за раз Нейросеть извлекает текст, таблицы и формулы из PDF и сканов. Главное отличие: не перечитывает весь документ заново, а обращается только к нужным фрагментам. Из-за этого... baidu/Unlimited-OCR

  7. 🔗 :baidu/Unlimited-OCR 开源免费;先走 Hugging Face 在线演示试解析,本地部署需要显卡,别一上来就装环境。

    2 likes · 2 reposts · 26 views
  8. YouTube · · YouTube description · AIEDA Technology, Inc. · baidu/Unlimited-OCR

    AI Repo: ruvnet/RuView | Git News AI Git News AI — 2026-10-28 AI Repo: ruvnet/RuView 🎧 Listen + full transcript: limitless-ai-podcasts.s3.us-east-2.amazonaws.com ## Episode Summary In this episode, we cover: - **AI Repo: ruvnet/RuView** (GitHub Trending) - [Read more](ruvnet/RuView) - **AI Repo: baidu/Unlimited-OCR** (GitHub Trending) - [Read more](baidu/Unlimited-OCR) - **AI Repo: Leonxlnx/taste-skill** (GitHub Trending) - [Read more](Leonxlnx/taste-skill) - **AI Repo: p-e-w/heretic** (GitHub Trending) - [Read more](p-e-w/heretic) - **AI Repo: xiaolai/the-craft-of-selfteaching** (GitHub Trending) - [Read more](xiaolai/the-craft-of-selfteaching) --- *Sponsored by Ada, Ago Consulting, and Zen Semiconductor* Brought to you by Ada, Ago Consulting & Zen Semiconductor. #podcast #OpenSource #AI #DevTools #GitHub

    2 views
  9. YouTube · · YouTube description · The AI Radar · baidu/Unlimited-OCR

    Baidu's open 3B OCR model reads a whole book in one pass Baidu's ERNIE team released Unlimited OCR 2 on Oct 27, 2026: an open-weights (MIT) document OCR model that parses very long documents, up to a full book, in a single request. • 3.34B parameters (BF16), MIT license, weights on Hugging Face; runs with Transformers, SGLang or vLLM (needs trust_remote_code) (model card). • New attention, SR-SWA: the model keeps a fixed set of working references (e.g. 512 tokens) instead of attending to every earlier page, so per-step cost stays constant (Baidu tech report). • Baidu-reported: 7.0x per-step speedup over full attention and 5.6x over R-SWA (v1's approach) at hundred-page scale. • Baidu-reported scores: MPDocBench 84.6 (+6.3), MarathonDocBench 77.06 (+43.3; Baidu's own new 100–300-page benchmark), OmniDocBench v1.6 94.02. • Limitations (Baidu): weaker on global structure such as heading hierarchy; limited training-data diversity. My take: 3B is small enough for a single own GPU (about 6.7 GB of BF16 weights, our math; Baidu tested on an A800-80GB), which makes local OCR for invoices and contracts realistic. But the long-document benchmark is Baidu's own; test it on your own PDFs. Sources (as of Oct 27, 2026): - Hugging Face model card: huggingface.co - GitHub: baidu/Unlimited-OCR - Tech report (Baidu ERNIE Team): github.com/baidu/Unlimited-OCR/blob/Unlimited-OCR… - Baidu on X (Oct 27, 2026): x.com No voiceover: text, graphics and music are original. Music synthesized in code for The AI Radar (no samples). Not registered in Content ID. #AInews #OCR #Baidu #OpenSource #LLM

    25 views
  10. ⭐ Unlimited OCR 2 ⭐ baidu/Unlimited-OCR 1. 중국 검색·AI 회사 바이두가 아주 긴 문서를 통째로 글자로 읽어주는 OCR 모델 2편을 오픈소스로 공개함 2. 문서가 길어질수록 계산량이 확 늘어나는 게 기존 문제인데, 새 방식(SR-SWA)은 참고하는 부분을 고정한 개수(예: 512토큰)로 줄여서 길이가 늘어도 속도와 메모리가 거의 일정함 3. 여러 쪽 이미지를 한 번에 넣으면 쪽 사이 맥락까지 보고 순서대로 읽어줌. 한 쪽짜리도 가능하고, 가볍게 써볼 땐 Transformers, 서버로 돌릴 땐 SGLang 추천 4. 수십 쪽짜리(MPDocBench)부터 100쪽 넘는 문서(MarathonDocBench)까지 최고 성능이라고 밝힘. 긴 문서용 새 평가 자료 MarathonDocBench도 같이 공개함 5. MIT 무료, 스타 2.9만 개. 모델 크기는 약 33억 개 파라미터이고 README 테스트는 NVIDIA A800 80GB, Python 3.10 기준 스캔한 책이나 백 쪽 넘는 보고서를 한 번에 글자로 바꾸고 싶은 사람한테 좋을 듯 ━━━━━━━━━━ 🇺🇸 1. Baidu open-sourced Unlimited OCR 2, an OCR model that reads very long documents in one go 2. Longer documents normally mean much more computation. The new method (SR-SWA) keeps the attention to a fixed-size set of references (e.g. 512 tokens), so speed and memory stay nearly constant as the document grows 3. Feed in multiple page images at once and it reads them in order using cross-page context. Single pages work too. Transformers for quick tests, SGLang recommended for serving 4. Baidu reports state-of-the-art results from dozens of pages (MPDocBench) to 100+ pages (MarathonDocBench). It also released MarathonDocBench, a new benchmark for ultra-long documents 5. Free under MIT, 29k stars. About 3.3B parameters. README tests were run on an NVIDIA A800 80GB with Python 3.10 Looks great for anyone who wants to turn scanned books or 100+ page reports into text in one shot #AI #OCR #OpenSource #Baidu #DocumentAI

    4 likes · 1 repost · 139 views

Achievements

Awards earned by the repositories baidu owns. Select an award to embed its badge.

Gold
01st place finishes
Silver
02nd place finishes
Bronze
43rd place finishes
Awarded repositories
1Owned by baidu now

Repositories

Ordered by gold, then silver, then bronze.

  1. Unlimited-OCRBest: 3rd by stars, 46 stars004

Every award

Top-three finishes of these repositories in completed trending days and weeks, newest first.

  1. Unlimited-OCR
  2. Unlimited-OCR
  3. Unlimited-OCR
  4. Unlimited-OCR

A repository earns an award for finishing first, second or third in a completed trending day or week, ranked by new stars, new forks or pull request authors. Awards follow a repository through renames and transfers and count toward its current owner. Weeks run Monday to Sunday, UTC.