Asynchronous LLM computations specifications with LLM:Graph
rakuforprediction.wordpress.com
Asynchronous LLM computations specifications with LLM:Graph
1–9 of 9 posts
Re: Asynchronous LLM computations specifications with LLM:Graph
#2"LLM::Graph" uses a graph structure to manage dependencies between tasks, where each node represents a computation and edges dictate the flow. Asynchronous behavior is a default feature, with specific options available for control.
Re: Asynchronous LLM computations specifications with LLM:Graph
#3Re: Asynchronous LLM computations specifications with LLM:Graph
#4that’s very interesting as far it goes, but wouldn’t Mathematica or Python be better choices than Raku for this kind of thing?
I personally don’t see what advantages Python as a language (not an ecosystem) would have here.
Re: Asynchronous LLM computations specifications with LLM:Graph
#5that’s very interesting as far it goes, but wouldn’t Mathematica or Python be better choices than Raku for this kind of thing?
In that case, when would Raku ever be a better choice than something else? I personally don’t see what advantages Python as a language (not an ecosystem) would have here.
Re: Asynchronous LLM computations specifications with LLM:Graph
#6that’s very interesting as far it goes, but wouldn’t Mathematica or Python be better choices than Raku for this kind of thing?
WL's LLMGraph is more developed and productized, but Raku's "LLM::Graph" is catching up.
I would like to say that "LLM::Graph" was relatively easy to program because of Raku's introspection, wrappers, asynchronous features, and pre-existing LLM functionalities packages. As a consequence the code of "LLM::Graph" is short.
Wolfram Language does not have that level introspection, but otherwise is likely a better choice mostly for its far greater scope of functionalities. (Mathematics, graphics, computable data, etc.)
In principle a corresponding Python "LLMGraph" package can be developed, for comparison purposes. Then the "better choice" question can be answered in a more informed manner. (The Raku packages "LLM::Functions" and "LLM::Prompts" have their corresponding Python packages implemented already.)
Re: Asynchronous LLM computations specifications with LLM:Graph
#7Earlier quoted context omitted.
In that case, when would Raku ever be a better choice than something else? I personally don’t see what advantages Python as a language (not an ecosystem) would have here.
Python is more widely known and a very popular tool for “LLM engineering”, so I’m curious what would be the reason to choose Raku in this case and wondering how the feature benefits of Raku outweigh the general incentive to use more popular tools.
But antononcube has thicker skin than me so..
Re: Asynchronous LLM computations specifications with LLM:Graph
#8Earlier quoted context omitted.
In that case, when would Raku ever be a better choice than something else? I personally don’t see what advantages Python as a language (not an ecosystem) would have here.
Python is more widely known and a very popular tool for “LLM engineering”, so I’m curious what would be the reason to choose Raku in this case and wondering how the feature benefits of Raku outweigh the general incentive to use more popular tools.
Another point, which could have mentioned in my previous response -- Raku has more elegant and easy to use asynchronous computations framework.
IMO, Python's introspection matches that Raku's introspection.
Some argue that Python's LLM packages are more and better than Raku's. I agree on the "more" part. I am not sure about the "better" part:
- Generally speaking, different people prefer decomposing computations in a different way. - When few years ago I re-implemented Raku's LLM packages in Python, Python did not have equally convenient packages.
Re: Asynchronous LLM computations specifications with LLM:Graph
#9Earlier quoted context omitted.
Python is more widely known and a very popular tool for “LLM engineering”, so I’m curious what would be the reason to choose Raku in this case and wondering how the feature benefits of Raku outweigh the general incentive to use more popular tools.
I don’t personally find “why didn’t you do it in X like everyone else?” to be very motivational for explaining my coding choices. But antononcube has thicker skin than me so..
For me, it is a mystery how programmers "decide" as a group that a new tool or language is better than the established & familiar ones. But I would love to see more folks open to try new tools like Raku that could make their lives easier and more fun.