Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ See [below](#benchmarks) for detailed speed and accuracy benchmarks, and instruc

## Hybrid Mode

For the highest accuracy, pass the `--use_llm` flag to use an LLM alongside marker. This will do things like merge tables across pages, handle inline math, format tables properly, and extract values from forms. It can use any gemini or ollama model. By default, it uses `gemini-2.0-flash`. See [below](#llm-services) for details.
For the highest accuracy, pass the `--use_llm` flag to use an LLM alongside marker. This will do things like merge tables across pages, handle inline math, format tables properly, and extract values from forms. It can use any gemini or ollama model. By default, it uses `gemini-3-flash-preview`. See [below](#llm-services) for details.

Here is a table benchmark comparing marker, gemini flash alone, and marker with use_llm:

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/table/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def gemini_table_rec(image: Image.Image):
image.save(image_bytes, format="PNG")

responses = client.models.generate_content(
model="gemini-2.0-flash",
model="gemini-3-flash-preview",
contents=[types.Part.from_bytes(data=image_bytes.getvalue(), mime_type="image/png"), prompt], # According to gemini docs, it performs better if the image is the first element
config={
"temperature": 0,
Expand Down
2 changes: 1 addition & 1 deletion marker/services/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class BaseGeminiService(BaseService):
gemini_model_name: Annotated[
str, "The name of the Google model to use for the service."
] = "gemini-2.0-flash"
] = "gemini-3-flash-preview"
thinking_budget: Annotated[
int, "The thinking token budget to use for the service."
] = None
Expand Down