Skip to content

[WIP] Support AmSC IRI API (deprecated)#428

Open
EZoni wants to merge 53 commits into
BLAST-AI-ML:mainfrom
EZoni:iri_client_new
Open

[WIP] Support AmSC IRI API (deprecated)#428
EZoni wants to merge 53 commits into
BLAST-AI-ML:mainfrom
EZoni:iri_client_new

Conversation

@EZoni EZoni added the dashboard Changes related to the dashboard label Apr 15, 2026
@EZoni
Copy link
Copy Markdown
Member Author

EZoni commented Apr 23, 2026

I post here a minimal working example that I would like to use to test things first and I will update it as needed. It is based on similar examples found in https://gitlab.com/amsc2/infrastructure-and-services/amsc-interfaces/amsc-python-client.

from amsc_client import Client


# Create client instance
client = Client(token="<my_token>")

# 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/<first-letter-of-username>/<username>/runs/iri"  # FIXME
job = perlmutter.submit(
    executable="/bin/echo",
    arguments=["Hello World!"],
    directory=run_dir,
    name="hello",
    queue="debug",
    account="<my_project>",
    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)

See tracking issue at https://gitlab.com/amsc2/infrastructure-and-services/amsc-interfaces/amsc-python-client/-/work_items/7.

@EZoni

This comment was marked as outdated.

Comment thread dashboard/iriapi_manager.py Fixed
@EZoni EZoni force-pushed the iri_client_new branch 5 times, most recently from 6b50bd1 to a134ffb Compare April 28, 2026 22:15
Comment thread dashboard/environment.yml Outdated
- trame-vuetify
- pip:
- sfapi_client
- "amsc-client @ file:///home/edoardo/src/amsc-python-client"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary installation from local source to apply the patch pushed to https://gitlab.com/edoardo.zoni/amsc-python-client/-/tree/add_upload.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the syntax "-e /home/edoardo/src/amsc-python-client" did not work for me.

@EZoni
Copy link
Copy Markdown
Member Author

EZoni commented May 5, 2026

I confirm that as of 5cbee8d the ML training through AmSC IRI API seems to be working correctly both with and without containerization.

Comment thread dashboard/hpc_manager.py
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file may be redundant and could be removed.

@EZoni EZoni mentioned this pull request May 8, 2026
13 tasks
@EZoni EZoni changed the title [WIP] Support AmSC IRI API [WIP] Support AmSC IRI API (deprecated) May 8, 2026
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.

3 participants