Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style/docs #927

Merged
merged 4 commits into from
Nov 11, 2024
Merged
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
👋 join us on <a href="https://discord.gg/Tdedn9GTXq" target="_blank">Discord</a> and <a href="https://cdn.vansin.top/internlm/mineru.jpg" target="_blank">WeChat</a>
</p>


<!-- read the docs -->
<p align="center">
read more docs on <a href="https://mineru.readthedocs.io/en/latest/"> Read The Docs </a>
</p>

</div>

# Changelog
Expand Down
6 changes: 6 additions & 0 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
👋 join us on <a href="https://discord.gg/Tdedn9GTXq" target="_blank">Discord</a> and <a href="https://cdn.vansin.top/internlm/mineru.jpg" target="_blank">WeChat</a>
</p>

<!-- read the docs -->
<p align="center">
read more docs on <a href="https://mineru.readthedocs.io/zh-cn/latest/"> Read The Docs </a>
</p>


</div>

# 更新记录
Expand Down
25 changes: 25 additions & 0 deletions next_docs/en/_static/image/ReadTheDocs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 37 additions & 26 deletions next_docs/en/user_guide/install/boost_with_cuda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ appropriate guide based on your system:

- :ref:`ubuntu_22_04_lts_section`
- :ref:`windows_10_or_11_section`
- Quick Deployment with Docker

- Quick Deployment with Docker > Docker requires a GPU with at least
16GB of VRAM, and all acceleration features are enabled by default.
.. admonition:: Important
:class: tip

.. note::
Docker requires a GPU with at least 16GB of VRAM, and all acceleration features are enabled by default.

Before running this Docker, you can use the following command to
check if your device supports CUDA acceleration on Docker.
Before running this Docker, you can use the following command to check if your device supports CUDA acceleration on Docker.

bash docker run --rm --gpus=all nvidia/cuda:12.1.0-base-ubuntu22.04 nvidia-smi
.. code-block:: bash

bash docker run --rm --gpus=all nvidia/cuda:12.1.0-base-ubuntu22.04 nvidia-smi

.. code:: sh

Expand All @@ -42,8 +44,9 @@ Ubuntu 22.04 LTS
If you see information similar to the following, it means that the
NVIDIA drivers are already installed, and you can skip Step 2.

Notice:``CUDA Version`` should be >= 12.1, If the displayed version
number is less than 12.1, please upgrade the driver.
.. note::

``CUDA Version`` should be >= 12.1, If the displayed version number is less than 12.1, please upgrade the driver.

.. code:: text

Expand Down Expand Up @@ -105,8 +108,10 @@ Specify Python version 3.10.

pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com

❗ After installation, make sure to check the version of ``magic-pdf``
using the following command:
.. admonition:: Important
:class: tip

❗ After installation, make sure to check the version of ``magic-pdf`` using the following command:

.. code:: sh

Expand All @@ -127,7 +132,10 @@ the script will automatically generate a ``magic-pdf.json`` file in the
user directory and configure the default model path. You can find the
``magic-pdf.json`` file in your user directory.

The user directory for Linux is “/home/username”.
.. admonition:: TIP
:class: tip

The user directory for Linux is “/home/username”.

8. First Run
~~~~~~~~~~~~
Expand Down Expand Up @@ -216,16 +224,16 @@ Python version must be 3.10.

pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com

..
.. admonition:: Important
:class: tip

❗️After installation, verify the version of ``magic-pdf``:
❗️After installation, verify the version of ``magic-pdf``:

.. code:: bash
.. code:: bash

magic-pdf --version

If the version number is less than 0.7.0, please report it in the
issues section.
If the version number is less than 0.7.0, please report it in the issues section.

5. Download Models
~~~~~~~~~~~~~~~~~~
Expand All @@ -240,7 +248,10 @@ the script will automatically generate a ``magic-pdf.json`` file in the
user directory and configure the default model path. You can find the
``magic-pdf.json`` file in your 【user directory】 .

The user directory for Windows is “C:/Users/username”.
.. admonition:: Tip
:class: tip

The user directory for Windows is “C:/Users/username”.

7. First Run
~~~~~~~~~~~~
Expand All @@ -258,23 +269,23 @@ Download a sample file from the repository and test it.
If your graphics card has at least 8GB of VRAM, follow these steps to
test CUDA-accelerated parsing performance.

1. **Overwrite the installation of torch and torchvision** supporting
CUDA.
1. **Overwrite the installation of torch and torchvision** supporting CUDA.

::
.. code:: sh

pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118
pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118

..
.. admonition:: Important
:class: tip

❗️Ensure the following versions are specified in the command:
❗️Ensure the following versions are specified in the command:

::

.. code:: sh

torch==2.3.1 torchvision==0.18.1

These are the highest versions we support. Installing higher
versions without specifying them will cause the program to fail.
These are the highest versions we support. Installing higher versions without specifying them will cause the program to fail.

2. **Modify the value of ``"device-mode"``** in the ``magic-pdf.json``
configuration file located in your user directory.
Expand Down
Loading
Loading