artificialwisdomai / origin

Artificial Wisdomâ„¢ Cloud Platform
Apache License 2.0
3 stars 4 forks source link

Introduction of a personal intelligence workload #95

Closed sdake closed 11 months ago

sdake commented 1 year ago

This demonstration inferences a llama2 model on our hardware. The personal intelligence is (not particularly) intelligent, just yet.

A note to reviewers. Please take a look at the packaging model. I really do want to stay near and dear to the Python community vibe. I am not opposed to alternate packaging approaches. Any software within the runtime really does need to be packaged using whatever approach the ecosystem we integrate with typically uses. For this example, the code is Python, so we need to use "Pythonic" packaging. Brew, Nix, Portage, etc, these are all alternatives. We need to pick our Pythonic packaging and ensure any workloads use that packaging model.

My proposal for Pythonic packaging is realized in this PR. I also propose we do not hedge.

Cage match?

Alternative packaging may be a distraction.

Alternative packaging may also generate demand...

Therefore, I propose Nix (or Brew) should be documented, if the overhead vs demand generation is in our favor.

sdake commented 1 year ago

(And also implemented). I don't want to go overboard on the distribution channels. I have built brew packages before, it takes a few minutes. @MostAwesomeDude would you mind adding a PR after this merges, that updates the docs with Nix instructions?

You are free to use your time as you wish, although if you could time one of these, that would help me understand our overall distribution costs.

Thank you! -steve

sdake commented 1 year ago

To clarify, implementing brew packaging for this would take me about 30 minutes. I don't have the time to spend, and the dependencies would be difficult to deal with. I am seeking a signal on the initial cost of packaging workloads using Nix. I am super interested in the dependency cost. Flatpak seems hot too, although I don't have time to eval.

Thank you< -steve

MostAwesomeDude commented 1 year ago

I'm giving this a swing before lunch. I'm not using a speedrunning timer, just a wall clock.

So far I've been at the keyboard for just about 10min. And I'll return later.

MostAwesomeDude commented 1 year ago

Okay, more Nix time. This is the hard part.

Okay, so I've been here for an hour. This is a sort of good sign, I guess; it means that nobody else has tried to package pykoi yet. I need to take a heat break, and then I'll figure out the rest of the details.