Skip to content

[WIP] Support AmSC IRI API - #439

Open
EZoni wants to merge 69 commits into
BLAST-AI-ML:mainfrom
EZoni:iri_client_new_latest
Open

[WIP] Support AmSC IRI API#439
EZoni wants to merge 69 commits into
BLAST-AI-ML:mainfrom
EZoni:iri_client_new_latest

Conversation

@EZoni

@EZoni EZoni commented May 8, 2026

Copy link
Copy Markdown
Member

EZoni added 30 commits April 15, 2026 13:56
Comment thread dashboard/utils.py Outdated
Comment thread dashboard/error_manager.py Outdated
Comment thread dashboard/error_manager.py Outdated
Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com>
@EZoni

EZoni commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

I confirm that, as of caefcc7, as expected I encounter the following error when I try to train an ML model with the AmSC IRI API backend:

Unable to complete remote training
Error occurred when executing remote training: 'FilesystemClient' object has no attribute 'upload'

@EZoni
EZoni force-pushed the iri_client_new_latest branch from 408006d to a1283b7 Compare June 26, 2026 00:13
@EZoni

EZoni commented Jun 26, 2026

Copy link
Copy Markdown
Member Author

For easier debugging later on, a1283b7 removed the installation of the AmSC Python client from the local source expected to contain the original upload patch.

@EZoni

EZoni commented Jun 26, 2026

Copy link
Copy Markdown
Member Author

I confirm that, as of caefcc7, as expected I encounter the following error when I try to train an ML model with the AmSC IRI API backend:

Unable to complete remote training
Error occurred when executing remote training: 'FilesystemClient' object has no attribute 'upload'

After some debugging, I think the amsc-client version with the latest upload fix has not yet been published as a package: https://gitlab.com/amsc2/infrastructure-and-services/amsc-interfaces/amsc-python-client/-/packages.

@EZoni

EZoni commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

After some debugging, I think the amsc-client version with the latest upload fix has not yet been published as a package: https://gitlab.com/amsc2/infrastructure-and-services/amsc-interfaces/amsc-python-client/-/packages.

When I try to bypass the package issue described in #439 (comment) by installing from source the latest version of amsc-client, I run into issues with the dependency iri-api-autogen, which does not seem to be installed automatically.

@EZoni

EZoni commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

Here's the latest version of the script I use to authenticate through Globus:

from amsc_client import Client


# Create client instance
client = Client(auth_method="globus")

# Check facility resources
nersc = client.facility("nersc")
for r in nersc.resources():
    print(r.name, r.status)

# Submit a job
perlmutter = nersc.resource("compute")
run_dir = "/pscratch/sd/e/ezoni/runs/iri"  # FIXME
job = perlmutter.submit(
    executable="/bin/echo",
    arguments=["Hello World!"],
    directory=run_dir,
    name="hello",
    queue="debug",
    account="m558",
    duration=300,
    nodes=1,
)
job.wait()

# Read job output via the filesystem API
home = nersc.resource("homes")
task = home.fs.head(f"{run_dir}/hello.stdout", lines=10)
task.wait()
print(task.result)

I think this should save a credentials.json in ~/.amsc automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Changes related to the dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants