py4cl2
py4cl2 copied to clipboard
Call python from Common Lisp
Hello, I'm trying to do the following: ``` (ql:quickload :py4cl2) (py4cl2:defpymodule "transformers" t :lisp-package "TRANSFORMERS") (defparameter *model-id* "meta-llama/Meta-Llama-3-8B-Instruct") (defparameter *pipeline* (transformers:pipeline :task "text-generation" :model *model-id*)) ``` but getting "Package TRANSFORMERS...
About parallel execution, there are many details and options at hand. I have played with some of them. And currently, I think it is best to use the following scheme....
AFAICT, these fall between `pyslot-value` and `pymethod` and end up being accessible from neither. I think these should be made visible through `pyslot-value`, since they are pseudo-slots, and that will...
Currently if you want to use a python venv with py4cl2 you need to `source` the venv _before running your lisp image_. In SBCL at least, using `uiop:run-program` doesn't let...