1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 15:47:26 +01:00

117 Commits

Author SHA1 Message Date
Michael Engel
3622340635 Apply formatting and linting to unit tests
Signed-off-by: Michael Engel <mengel@redhat.com>
2025-02-26 17:42:30 +01:00
Michael Engel
149086e043 Added unit tests for new model factory
Signed-off-by: Michael Engel <mengel@redhat.com>
2025-02-24 10:11:12 +01:00
Eric Curtin
bfe91e3c2d Make CI build all images
To ensure they all continue to build and remain of reasonable size.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-02-22 13:48:50 +00:00
Michael Engel
c21764e818 Introduced isort in the format make targets
Signed-off-by: Michael Engel <mengel@redhat.com>
2025-02-15 15:00:56 +01:00
Michael Engel
73a74bea19 Refined formatting and linting
Split make target lint into lint, format and check-format
and updated the CI steps accordingly. Also moved configuration
of black to pyproject.toml and flake8 to .flake8 file.

Signed-off-by: Michael Engel <mengel@redhat.com>
2025-02-15 15:00:56 +01:00
Michael Engel
b31482cc8d Pin versions of the development tools to major version
By pinning the version of the development tools, the risk of
accidental upgrades and breaking changes leading are mitigated.

Signed-off-by: Michael Engel <mengel@redhat.com>
2025-02-15 14:56:13 +01:00
Daniel J Walsh
7f1e680b09 Attempt to use build_llama_and_whisper.sh
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-02-12 13:03:23 -05:00
Daniel J Walsh
4e4e6708bf Add ramalama rag command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-02-12 11:43:09 -05:00
Daniel J Walsh
c166c0a007 Begin process of packaging PRAGmatic
Building Pragmatic into a container image is fairly easy.

podman build --build-arg IMAGE=quay.io/ramalama/rocm -t quay.io/ramalama/rocm-rag container-images/pragmatic

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-02-05 14:07:56 -05:00
Charro Gruver
7ba4c953d1 Fix syntax error in Makefile
Signed-off-by: Charro Gruver <cgruver@redhat.com>
2025-02-04 19:47:47 +00:00
Charro Gruver
e7495266ec Modify Makefile to support multi-arch builds
Signed-off-by: Charro Gruver <cgruver@redhat.com>
2025-02-04 19:44:27 +00:00
Daniel J Walsh
6f1c21c3c4 Remove omlmd from OCI calls
Also Simplify Spec File

Fedora 39 is no longer supported, so remove checks in spec file.

More Podman to Recommends, You can run RamaLama with no container engine or with Docker.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-01-15 14:46:51 -05:00
Daniel J Walsh
9d9d07451d container_build.sh works on MAC
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-01-14 17:12:31 -05:00
Eric Curtin
08ae68241f Merge pull request #544 from rhatdan/run
whisper.cpp now installs properly
2025-01-07 15:20:19 +00:00
Daniel J Walsh
600c9b7676 whisper.cpp now installs properly
These changes are required for building images.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-01-07 10:16:54 -05:00
Eric Curtin
dd38466f6f Build to build_rm
This should be build_rm

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-01-07 14:46:24 +00:00
Eric Curtin
b3c1c0bc3e Update container images to use latest
Update CUDA base image from version to 12.6.3 for both builder
and runtime stages. Update UBI base image to 9.5. Update ROCm
version in to 6.3.1.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-01-05 18:46:38 +00:00
Eric Curtin
7572236fb4 Improved command handling and refactoring
- Modified `Makefile` to pass the 'build' command to `container_build.sh`.
- Refactored `container_build.sh` to:
  - Use `case` statements for command handling.
  - Add `determine_platform` function to determine the platform.
  - Add `parse_arguments` function for better argument parsing.
  - Add `process_all_targets` function to handle all container images.
  - Add `print_usage` function to display usage information.
  - Enhance the `main` function to use the new functions and handle errors.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-01-03 17:29:02 +00:00
swarajpande5
19e38583c5 Skip codespell of venv by adding --skip in the command
Signed-off-by: swarajpande5 <swarajpande5@gmail.com>
2024-12-30 18:12:36 +05:30
swarajpande5
87dcf7517f Remove tqdm dependency
Signed-off-by: swarajpande5 <swarajpande5@gmail.com>
2024-12-22 18:45:03 +05:30
Daniel J Walsh
9d8d4548a6 Make it easier to test-run manually
NO need to leak ramalama storage into container any longer.

Since we are disabling SELinux don't add Z.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-11-08 16:20:08 -05:00
Daniel J Walsh
7c2e8c35b3 Add man page information for ramalama.conf
Add missing transport directive in ramalama.conf
Add default ramalama.conf file.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-30 10:22:07 -04:00
Stephen Smoogen
cd2ee69a69 Fix merge branch 'main' into fix_spec_v0.0.20
I found that the fix in the Makefile still broke on f39, and having
the line just ignore if it fails worked.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2024-10-24 13:15:50 +00:00
Stephen Smoogen
24b3b813b3 Fix Makefile to be less stringent on failues of zsh
I am making some lines optional in the Makefile and added fixes from
the RPM review.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2024-10-24 12:57:03 +00:00
Eric Curtin
b9ed1eaf1d Added a check to the zsh completions generation step
Ensuring that zsh is actually supported

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-10-23 18:23:59 +01:00
Robert Sturla
4c85d7d710 fix: update Makefile and CI to run individual container image builds
Signed-off-by: Robert Sturla <robertsturla@outlook.com>
2024-10-21 17:55:18 +01:00
Daniel J Walsh
333ec5969d split build from validate in Makefile
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-17 16:52:04 -04:00
Eric Curtin
5ca5a5a6a3 Merge pull request #320 from rhatdan/docker
Add support for testing with docker
2024-10-16 18:02:42 +01:00
Daniel J Walsh
77c149f9f7 Add support for testing with docker
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-16 11:19:15 -04:00
Daniel J Walsh
dd1d1ef6df Fix handling of completions on MacOS
Currently we are not installing command completions via PyPi.
For some reason python is ignoring the build directory.
Moving the completions from build to completions fixes the issue.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-16 09:58:50 -04:00
Daniel J Walsh
75dfd10d69 Add zsh completions
Fixes: https://github.com/containers/ramalama/issues/302

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-15 17:42:49 -04:00
Daniel J Walsh
3656d750ed Remove requirements.txt, pyproject.toml handles it
fix huggingface_hub since this package exists as well.

make install  use --no-deps

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-11 11:34:43 -04:00
Daniel J Walsh
394735d77a Turn on --nocontainer test on MACs
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-04 11:39:19 -04:00
Eric Curtin
27d514b9b7 Merge pull request #226 from rhatdan/test
fix up tests
2024-10-03 17:26:02 +01:00
Daniel J Walsh
11a46be7d8 fix up tests
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-03 11:56:19 -04:00
Daniel J Walsh
a131f3a081 Add man pages to pypi
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-03 11:54:11 -04:00
tarilabs
f2fc39a59a deps: bumps omlmd to 0.1.5
adding support for chunked uploads

pruned dependency tree, in preparation for formulae

Signed-off-by: tarilabs <matteo.mortari@gmail.com>
2024-10-03 14:49:37 +02:00
Daniel J Walsh
70da0ab714 make docs when doing make pypi
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-02 17:27:00 -04:00
Daniel J Walsh
14fb57b295 Completions was done twice in Makefile
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-01 09:00:44 -04:00
Daniel J Walsh
7ff26ec1ce Convert to fully use setup.py for PyPi installation
Add pyproject.toml, setup.cfg
Add new target make pypi.
fix up requirements.txt

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Update

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-01 08:37:18 -04:00
Eric Curtin
70fdfb7b35 Merge pull request #207 from rhatdan/test1
Turn on --detach serve and stop all test
2024-09-30 16:18:47 +01:00
Daniel J Walsh
6df97a4f89 Turn on --nocontainer testing
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-30 10:55:06 -04:00
Daniel J Walsh
84bc79d001 Turn on --detach serve and stop all test
Cleanup other issues found in reviews.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-30 10:52:41 -04:00
Daniel J Walsh
6ce04ddbee Add command completion to Ramalama
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-30 09:22:23 -04:00
renovate[bot]
019278e76d Update dependency ubuntu to v24
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-29 09:45:23 -04:00
Eric Curtin
29c0d9aba0 Fix CI
Replaces: https://github.com/containers/ramalama/pull/186

Use ubuntu 22.04, maybe we can move to 24.04 also in another PR.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-25 14:44:33 -04:00
Daniel J Walsh
da15ef8373 Cleanup execution of the container
No reason to leak /tmp, $HOME into the container.
The container is not run interactively, so we should not use --it
Always name the container

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-24 06:21:58 -04:00
Jens Petersen
f54cab91b1 Makefile: separate install-program target
Signed-off-by: Jens Petersen <petersen@redhat.com>
2024-09-22 18:22:13 +08:00
Daniel J Walsh
961576b22b add ramalama stop --ignore option
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-20 11:42:48 -04:00
Daniel J Walsh
71eeacdd93 Cleanup and install shortnames files
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-09-19 13:44:50 -04:00