0
0
MLOpsdevops~30 mins

Hardware and framework version tracking in MLOps - Mini Project: Build & Apply

Choose your learning style9 modes available
Hardware and Framework Version Tracking
📖 Scenario: You work in a machine learning team. You want to keep track of the hardware and software versions used for training models. This helps your team reproduce results and debug issues.
🎯 Goal: Create a Python dictionary to store hardware and framework versions. Add a configuration variable for the minimum required framework version. Then filter the dictionary to keep only versions that meet or exceed this minimum. Finally, print the filtered versions.
📋 What You'll Learn
Create a dictionary called versions with exact keys and values
Add a variable called min_framework_version with the exact value 2.0
Use a dictionary comprehension to create valid_versions with framework versions >= min_framework_version
Print the valid_versions dictionary
💡 Why This Matters
🌍 Real World
Tracking hardware and software versions helps teams reproduce machine learning experiments and debug issues effectively.
💼 Career
Version tracking is a key skill for MLOps engineers to ensure consistent environments and smooth collaboration.
Progress0 / 4 steps
1
Create the versions dictionary
Create a dictionary called versions with these exact entries: 'GPU': 'NVIDIA RTX 3090', 'CPU': 'Intel i9-11900K', 'Framework': '2.3', 'CUDA': '11.2'
MLOps
Need a hint?

Use curly braces {} to create a dictionary. Separate keys and values with colons. Use quotes for strings.

2
Add minimum framework version
Add a variable called min_framework_version and set it to the string '2.0'
MLOps
Need a hint?

Assign the string '2.0' to the variable min_framework_version.

3
Filter versions by minimum framework version
Use a dictionary comprehension to create a new dictionary called valid_versions that includes all items from versions where the key is not 'Framework' or the value of 'Framework' is greater than or equal to min_framework_version. Convert the version strings to floats for comparison.
MLOps
Need a hint?

Use {k: v for k, v in versions.items() if ...} and convert version strings to floats for comparison.

4
Print the filtered versions
Print the valid_versions dictionary using print(valid_versions)
MLOps
Need a hint?

Use the print function to display the dictionary.