PROC OLLAMA, a SAS procedure written using SAS/toolkit calls llama.cpp to run the large model locally(Windows 11 x64), details: analyserxyz/myrepo1: test
Example code:
options fullstimer;
libname tmplib "c:\temp";
proc ollama out=tmplib.result;
model "c:\temp\gemma-1.1-7b-it.Q4_K_M.gguf";
params "-no-cnv -ngl 99 -p ""Once upon a time""";
run;
Output:
The more people who need this module, the more likely it is that R&D will deliver it as soon as possible, so it is recommended that you or remind all customers who need it to send a request to SAS Technical Support for SAS/Toolkit for Viya 4
is there a way to run this in viya?
Unfortunately, there is no SAS/Toolkit module under Viya right now, so this procedure does not work on Viya. It can be replaced by other methods, such as using x, pipe to execute the llama-cli command line to output the result to a file, and then read the result back from the file.
This looks really promising - is there anything that can be done to help prioritize the development of this kind of development for Viya or SAS workbench?
The more people who need this module, the more likely it is that R&D will deliver it as soon as possible, so it is recommended that you or remind all customers who need it to send a request to SAS Technical Support for SAS/Toolkit for Viya 4
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.