BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.

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:

GreenCode_0-1744213523084.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
GreenCode
SAS Employee

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

View solution in original post

4 REPLIES 4
Vrushin
SAS Employee

is there a way to run this in viya?

GreenCode
SAS Employee

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.

williamnadolski
SAS Employee

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?

GreenCode
SAS Employee

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

sas-innovate-white.png

Missed SAS Innovate in Orlando?

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.

 

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1459 views
  • 1 like
  • 3 in conversation
OSZAR »