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

Add information for Podman as well as Docker #11660

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhatdan
Copy link

@rhatdan rhatdan commented Feb 4, 2025

We believe Podman is a viable alternative to Docker. Lots of people have moved to Podman, and the project should make sure people adopt it.

Make sure to read the contributing guidelines before submitting a PR

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 4, 2025
docs/build.md Outdated

You don't need to install Vulkan SDK. It will be installed inside the container.

```sh
# Build the image
docker build -t llama-cpp-vulkan --target light -f .devops/vulkan.Dockerfile .

or
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
or
# or with podman

missing the comment sign #

docs/build.md Outdated
# Then, use it:
docker run -it --rm -v "$(pwd):/app:Z" --device /dev/dri/renderD128:/dev/dri/renderD128 --device /dev/dri/card1:/dev/dri/card1 llama-cpp-vulkan -m "/app/models/YOUR_MODEL_FILE" -p "Building a website can be done in 10 simple steps:" -n 400 -e -ngl 33

or
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, or probably split it into 2 different code blocks to avoid bad copy/paste when user don't know much about it


Replace `/path/to/models` below with the actual path where you downloaded the models.

```bash
docker run -v /path/to/models:/models ghcr.io/ggerganov/llama.cpp:full --all-in-one "/models/" 7B
```
or
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this is now a bit hard to follow, because some people just copy-paste the command one by one without looking at the "or" word.

A better way here is to hide these podman code blocks inside a expandable block

README.md Outdated
@@ -242,7 +242,7 @@ The project also includes many example programs and tools using the `llama` libr

- Clone this repository and build locally, see [how to build](docs/build.md)
- On MacOS or Linux, install `llama.cpp` via [brew, flox or nix](docs/install.md)
- Use a Docker image, see [documentation for Docker](docs/docker.md)
- Use a container image, see [documentation for containers](docs/container.md)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Use a container image, see [documentation for containers](docs/container.md)
- Use a container image (docker/podman), see [documentation for containers](docs/container.md)

In case someone do a Ctrl+F search for "docker", they should see it. Also good for SEO.

@rhatdan rhatdan force-pushed the podman branch 3 times, most recently from 16f5682 to 74349d3 Compare February 4, 2025 19:13
# Build the image
docker build -t llama-cpp-vulkan --target light -f .devops/vulkan.Dockerfile .

<details><summary>Docker example</summary>docker build -t llama-cpp-vulkan --target light -f .devops/vulkan.Dockerfile .</details>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

markdown code block is broken here

also, what I mean is that only the podman command should be put into details block, as not many users use it

most users use docker, so let's make it a bit more straight-forward for them.

We believe Podman is a viable alternative to Docker.
Lots of people have moved to Podman, and the project
should make sure people adopt it.

Signed-off-by: Daniel J Walsh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants