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

add optional view metadata fields to record runtime environment #232

Open
keighrim opened this issue Jul 14, 2024 · 0 comments
Open

add optional view metadata fields to record runtime environment #232

keighrim opened this issue Jul 14, 2024 · 0 comments
Labels
✨N New feature or request

Comments

@keighrim
Copy link
Member

New Feature Summary

This is a backport of clamsproject/clams-python#237. In the implementation in that PR, I used view.metadata.runtime object to iterate hardware and time consumption at the runtime, but I thought it might be helpful to have a more formal specification for the in the MMIF spec/schema.

Instead of a single nested object, I'm thinking of multiple fields with appRunningXxx prefix. For example;

  "views": [                                                                                                                                 
    {
      "id": "v_0",
      "metadata": {
        "timestamp": "2024-07-05T21:00:07.408801",
        "app": "http://apps.clams.ai/swt-detection/v5.1-9-g6b12498",
        "contains": {
          "http://mmif.clams.ai/vocabulary/TimePoint/v4": {
            ...
          },
          "http://mmif.clams.ai/vocabulary/TimeFrame/v5": {
            ...
          },
          "http://mmif.clams.ai/vocabulary/Annotation/v5": {
            ...
          }
        },
        "parameters": {
          "pretty": "",
          "stopAt": "120000",
          "hwFetch": "",
          "runningTime": ""
        },
        "appConfiguration": {
          ...
        },
        "appRunningTime": "0:00:05.466913",    # runningTime=True
        "appRunningHardware": {                # hwFetch=True
          "architecture": "x86_64",
          "cuda": [
            "NVIDIA RTX A6000 (49140 MiB)",
            "NVIDIA RTX A6000 (49140 MiB)",
            "NVIDIA RTX A6000 (49140 MiB)",
            "NVIDIA RTX A6000 (49140 MiB)"
          ]
        },
      }
    }
  ]

Of course the names and structure is open discussion. Any input is welcome 🙏

Related

No response

Alternatives

No response

Additional context

No response

@keighrim keighrim added the ✨N New feature or request label Jul 14, 2024
keighrim added a commit to clamsproject/clams-python that referenced this issue Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨N New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant