8000 feat(core): Add support for ollama module by bricefotzo · Pull Request #4 · bricefotzo/testcontainers-python · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@bricefotzo
Copy link
Owner
  • Added a new class OllamaContainer with few methods to handle the Ollama container.

  • The _check_and_add_gpu_capabilities method checks if the host has GPUs and adds the necessary capabilities to the container.

  • The commit_to_image allows to save somehow the state of a container into an image so that we can reuse it, especially for the ones having some models pulled.

  • Added tests to check the functionality of the new class.

@bricefotzo bricefotzo force-pushed the feature/add-ollama branch 5 times, most recently from 2d411c2 to 9d45d4e Compare June 26, 2024 22:02
- Added a new class OllamaContainer with few methods to handle the Ollama container.

- The `_check_and_add_gpu_capabilities` method checks if the host has GPUs and adds the necessary capabilities to the container.

- The `commit_to_image` allows to save somehow the state of a container into an image so that we can reuse it, especially for the ones having some models pulled.
- Added tests to check the functionality of the new class.
- Added a new class OllamaContainer with few methods to handle the Ollama container.

- The `_check_and_add_gpu_capabilities` method checks if the host has GPUs and adds the necessary capabilities to the container.

- The `commit_to_image` allows to save somehow the state of a container into an image so that we can reuse it, especially for the ones having some models pulled.
- Added tests to check the functionality of the new class.
@bricefotzo bricefotzo force-pushed the feature/add-ollama branch from 9d45d4e to 5b08529 Compare June 27, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0