Skip to content
TriedPrompts

More in Team workflows & setup.

Get DeepSeek-OCR running on an NVIDIA Spark with Claude Code

With four prompts in about 40 minutes, Claude Code got DeepSeek-OCR running on NVIDIA Spark hardware and OCR'd a test image.

Result: WorkedTool: Claude CodeLevel: AdvancedSetup: Needs Docker

Copy the prompt

Outcome

Simon Willison ran Claude Code with full permissions inside a Docker container on an NVIDIA Spark and asked it to get the new DeepSeek-OCR model working, keep notes and OCR a sample image. After 13 minutes it gave up, reporting that the Spark's GB10 GPU was too new for PyTorch 2.5.1. Willison asked whether other PyTorch versions had ARM CUDA wheels; it then found PyTorch 2.9.0 builds for CUDA 13.0, got past the error, ran the model and returned OCR text with bounding boxes. Four prompts and about 40 minutes in all, much of it while Willison had breakfast, also produced setup scripts, notes and a README.

Evidence: Screenshots or logsThe source shows screenshots, a transcript or the AI's output.

WorkedEvidence: Screenshots or logsPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Original prompt

The prompt as the person shared it in the source.

What the prompt labels mean

These are the person's own words, as shared in the source.

Your task is to get this working: https://github.com/deepseek-ai/DeepSeek-OCR —it uses Hugging Face Transformers and models from https://huggingface.co/deepseek-ai/DeepSeek-OCR —you are running in a Docker container on an NVIDIA ARM device, first research your environment to check it will be possible to do this. Git clone both of those—you may need to enable LFS first. Make extensive notes as you go in a notes.md file which you should only ever append new notes to. At the end of this you should have scripts in the folder which can be run to both setup and then run the model against an example—use https://static.simonwillison.net/static/2025/ft.jpeg as the example image that you OCR. As a final step create a detailed README.md file explaining the project and what you learned and how to run your code.

Try this in:

Sends the Original prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Goal: Get DeepSeek-OCR running inside this Docker container on an NVIDIA ARM device and prove it works on a sample image.

Inputs (fill in or confirm):
- Repo and model links (github.com/deepseek-ai/DeepSeek-OCR, huggingface.co/deepseek-ai/DeepSeek-OCR)
- A test image path
- Working directory you may write to

Rules:
- First check the environment: GPU visibility, CUDA version, Python, disk space; report whether it's feasible before installing anything big.
- Use a virtual environment and pin versions that match the CUDA/ARM build.
- Keep notes in a markdown log of every command and fix as you go.
- Prefer official wheels; if you must build from source, say why.

Checkpoint: Ask before deleting files outside the working directory or upgrading system drivers.

If you get stuck: If a dependency has no ARM build, stop and list options rather than looping on installs. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Run OCR on the sample image and show the extracted text.

Output: The setup log, a run script, and the OCR output.

Done when: a single command reproduces working OCR on the sample image.

AI tool

Claude Code

Source

Posted
by Simon Willison
Last checked
Method:
How we verify

https://simonwillison.net/2025/Oct/20/deepseek-ocr-claude-code/

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Team workflows & setup

More in CodingRandom case in Coding