1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

24 Commits

Author SHA1 Message Date
Daniel J Walsh
8b6c7ce742 Set TMPDIR to /var/tmp if not set
Currently we are defaulting to /tmp and in some cases this means pulling
huge models to the /tmp directory which on a lot of linux platforms is a
tmpfs. /var/tmp tends to have much more space, so setting this as a
default is better.

Fixes: https://github.com/containers/ramalama/issues/1778

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-08-02 06:52:44 -04:00
Daniel J Walsh
764fc2d829 Make sure llama-stack URL is shown to user
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-06-10 09:50:04 +02:00
Eric Curtin
35dc8aac2f Remove all path additions to this file
This was added when we didn't have good installation techniques
for mac. We have pipx which was not intuitive and a hacked
together shell script as an alternative. Now that we have brew and
uv integrated we don't need this code.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-05-13 10:16:56 +01:00
Ian Eaves
785c66184b updated build to remove setup.py dependency to fix cli entrypoint
Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

removed uv.lock

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

reverts uv-install.sh, bin/ramalama, and flat cli hierarchy

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

packit version extraction from pyproject.toml

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

pyproject.toml references license file

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

fixed completion directory location

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

fixed format and check-format. There is no longer a root .py file to check

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

newline at end of install-uv.sh

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

remove *.py from make lint flake8 command

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

added import for ModelStoreImport to main

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

attempt to consolidate main functions

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

lint

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

Make bin/ramalama executable

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>

typo

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
2025-05-07 10:57:31 -05:00
Michael Engel
1cda889ca7 Added migrate script to import models to new store
The migration is run on each command to import all models
from the old store to the new one. It also removes the old
directories and creating the old structure is prevented.

Signed-off-by: Michael Engel <mengel@redhat.com>
2025-04-23 17:07:24 +02:00
Daniel J Walsh
623cda587c Add url support to rag to pull content to the host
Users should be able to list URLs and pull them to the host to
be processed by doc2rag command.

Also should force building of AI Data images to --network=none.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-04-01 10:21:07 -04:00
Eric Curtin
6416c9e3e9 Add ramalama client
Once we achieve feature parity with llama-run, we will more
tightly integrate this into RamaLama.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-03-20 17:30:38 +00:00
Michael Kesper
536efce9ea Remove --version flag
`version` is already a subcommand.

Signed-off-by: Michael Kesper <mkesper@web.de>
2025-02-18 00:33:23 +01:00
Jesse Jaggars
0cbf72bae0 raising exceptions rather than returning numbers
Signed-off-by: Jesse Jaggars <jhjaggars@gmail.com>
2025-01-28 18:15:51 -05:00
Daniel J Walsh
7d42a75aae When it debug mode show the exception for subcommand missing
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-01-10 04:19:27 -05:00
pghole
d3b3ebc2bd Resolves - Ramalama debug option shows traceback when no subcommand is passed
Signed-off-by: pghole <pranitaghole@gmail.com>
2024-12-30 15:09:19 +05:30
Daniel J Walsh
86a3653246 Add support for http, https and file pulls
Summary by Sourcery

Add support for pulling models using http, https, and file URLs, enabling direct
 execution of models from web or local sources. Update documentation and add tes
ts to cover the new functionality.

New Features:

    Add support for pulling models using http, https, and file URLs, allowing mo
dels to be run directly from web sources or local files.

Enhancements:

    Refactor the symlink creation process to use os.symlink directly instead of
run_cmd.

Documentation:

    Update documentation to include new URL syntax support for http, https, and
file protocols, explaining how models can be pulled from these sources.

Tests:

    Add system tests to verify the functionality of pulling models using file an
d https URLs, ensuring they can be listed and removed correctly.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-11-21 21:37:57 -05:00
Daniel J Walsh
03b9b8b4f1 Fix handling of ramalama login huggingface
Fixes: https://github.com/containers/ramalama/issues/465

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-11-19 15:37:34 -05:00
Daniel J Walsh
8ed6f4868e Mount model. car volumes into container
This is a redesign of run and serve to not run RamaLama within
the container but only the AI Model Runtime llama.cpp or vllm.

This should simplify the operation, although potentially causes
us risk with versions of Python on the host.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-11-01 08:43:42 -04:00
Daniel J Walsh
9272cd4468 Support listing and removing newly designed bundled images
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-28 16:36:59 -04:00
Daniel J Walsh
a6195492fc Add --debug option to show exec_cmd and run_cmd commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-25 15:00:30 -04:00
Eric Curtin
123a993416 If installed in /usr/local , ramalama libs cannot be found
This adds the /usr/local paths

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-10-19 15:52:14 +01:00
Daniel J Walsh
c1df80ace5 Add pipx paths to PATH environment variable
When installing via pipx, requirement executables of RamaLama are
stored in the venvs/ramalama/bin directory.  Have to modify the
system PATH so ramalama can find them.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-10 14:38:07 -04:00
Eric Curtin
3e8cf0f515 If we don't match the first time
Try and include other python versions venvs

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-10-09 12:28:25 +01:00
Eric Curtin
3a27d68e32 Creating a hack/rm.sh script
Want to try and install via pipx and wrote a script to remove old
install. Also converted python install script back to shell, the
python experience in a new mac is just not nice in comparison to
bash.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-10-04 15:26:34 +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
e01952bc13 Mount distinfo into container if it exists
Currently PyPi and make install is creating a distinfo file which is
needed in order to retrieve the version of ramalama in use
inside of the container.

Also handle shortnames.conf file created via PyPi which is installed in
$HOME/.local/share/ramalama/shortnames.conf

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-02 17:14:17 -04:00
Daniel J Walsh
06cfd12f8b Catch KeyboardInterrupt and exit
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-01 13:58:50 -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