Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release yagna and ya-runtime-ai (package v5.1.0) #201

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Golem.Package/Args.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ public class BuildArgs
{
[Option('t', "target", Default = "package", Required = false, HelpText = "Directory where binaries will be generated relative to working dir")]
public required string Target { get; set; }
[Option('y', "yagna-version", Default = "pre-rel-v0.16.0-preview.ai.42", Required = false, HelpText = "Yagna version github tag")]
[Option('y', "yagna-version", Default = "pre-rel-v0.16.0-preview.ai.47", Required = false, HelpText = "Yagna version github tag")]
public required string GolemVersion { get; set; }
[Option('r', "runtime-version", Default = "v0.2.5", Required = false, HelpText = "Runtime version github tag")]
[Option('r', "runtime-version", Default = "v0.2.6", Required = false, HelpText = "Runtime version github tag")]
public required string RuntimeVersion { get; set; }
[Option('c', "dont-clean", Default = false, Required = false, HelpText = "Remove temporary directories")]
public required bool DontClean { get; set; }
Expand All @@ -23,7 +23,7 @@ public class DownloadArgs
{
[Option('t', "target", Default = "modules", Required = false, HelpText = "Directory where binaries will be generated relative to working dir")]
public required string Target { get; set; }
[Option('p', "version", Default = "pre-rel-v5.0.7", Required = false, HelpText = "Gamerhash module integration package version")]
[Option('p', "version", Default = "v5.1.0", Required = false, HelpText = "Gamerhash module integration package version")]
public required string PackageVersion { get; set; }
}

Expand Down
4 changes: 2 additions & 2 deletions Golem.Tools/GolemPackageBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ namespace Golem.Tools
{
public class PackageBuilder
{
public static string CURRENT_GOLEM_VERSION = "pre-rel-v0.16.0-preview.ai.42";
public static string CURRENT_RUNTIME_VERSION = "v0.2.5";
public static string CURRENT_GOLEM_VERSION = "pre-rel-v0.16.0-preview.ai.47";
public static string CURRENT_RUNTIME_VERSION = "v0.2.6";

internal static string InitTestDirectory(string name, bool cleanupData = true)
{
Expand Down
4 changes: 2 additions & 2 deletions MockGUI/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ golem data directories.
You can choose specific release to be downloaded:

```sh
dotnet run --project Golem.Package -- download --target modules --version pre-rel-v5.0.1
dotnet run --project Golem.Package -- download --target modules --version v5.0.1
```

In case of building artifacts locally you can specify `yagna` and `runtimes` versions:

```sh
dotnet run --project Golem.Package -- build --target modules --yagna-version pre-rel-v0.16.0-preview.ai.42 --runtime-version v0.2.5
dotnet run --project Golem.Package -- build --target modules --yagna-version pre-rel-v0.16.0-preview.ai.47 --runtime-version v0.2.6
```

## Running
Expand Down
16 changes: 15 additions & 1 deletion example/ai-requestor/ai_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,26 @@ class AiRuntimeService(Service):
@staticmethod
async def get_payload():
## TODO switched into using smaller model to avoid problems during tests. Resolve it when automatic runtime integrated
# return AiPayload(image_url="hash:sha3:92180a67d096be309c5e6a7146d89aac4ef900e2bf48a52ea569df7d:https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors?download=true")
# return AiPayload(image_url="hash:sha3:0b682cf78786b04dc108ff0b254db1511ef820105129ad021d2e123a7b975e7c:https://huggingface.co/cointegrated/rubert-tiny2/resolve/main/model.safetensors?download=true")

return AiPayload(
image_url="hash:sha3:b2da48d618beddab1887739d75b50a3041c810bc73805a416761185998359b24:https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors?download=true",
runtime=AiRuntimeService.runtime,
)
# return AiPayload(
# image_url="hash:sha2:26ebb6db2a68593c54c74902d7a74f332da66297693f965cc9f1b0af4abf3894:https://huggingface.co/cointegrated/rubert-tiny2/resolve/main/model.safetensors?download=true",
# runtime=AiRuntimeService.runtime,
# )
# return AiPayload(
# image_url="hash:sha3:92180a67d096be309c5e6a7146d89aac4ef900e2bf48a52ea569df7d:https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors?download=true",
# runtime=AiRuntimeService.runtime,
# )
# return AiPayload(
# image_url="hash:sha2:31e35c80fc4829d14f90153f4c74cd59c90b779f6afe05a74cd6120b893f7e5b:https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors?download=true",
# runtime=AiRuntimeService.runtime,
# )



async def start(self):
self.strategy.remember(self._ctx.provider_id)
Expand Down
Loading