Skip to content

AI Work Hub ​

AI Work Hub is a comprehensive platform designed to streamline and enhance the workflow of AI and machine learning projects. It integrates various tools and services to provide a seamless experience for data scientists, researchers, and engineers.

AI Work Hub Navigation

  • Dashboard: Overview of recently requested resources.
  • Projects: Manage and organize your AI experiments.
  • Datasets: Version and manage datasets for reproducibility.
  • Pipelines: Define, execute, and monitor complex workflows.
  • Reports: Generate and view detailed reports of your experiments using markdown.
  • Orchestration: Monitor resources (CPU and GPU, memory, video memory, and network usage) used by the tasks that workers execute.
  • Applications: Access various integrated applications like VSCode and JupyterLab.

Experiment Tracking ​

With AI Work Hub, users can easily track their experiments, ensuring reproducibility and efficient resource management. The platform provides a user-friendly interface to visualize and compare various metrics, logs, and other relevant information. Users can explore the source code, hyperparameter configurations, artifacts such as model training checkpoints, log console, and plots.

Experiments Dashboards

Below is a snippet of code demonstrating how to record an experiment using the ClearML library:

python
from clearml import Task

# Create a new task in ClearML
task = Task.init(project_name='AI Work Hub Project', task_name='Experiment Tracking Example')

# Log hyperparameters
task.connect({'learning_rate': 0.001, 'batch_size': 32})

# Log metrics
for epoch in range(10):
    accuracy = 0.8 + epoch * 0.01  # Example metric
    task.get_logger().report_scalar('accuracy', 'validation', iteration=epoch, value=accuracy)

# Close the task
task.close()

Container Registry Access ​

AI Work Hub supports accessing private container registries through Administrator Vault feature. This allows you to use custom Docker images from private registries in your AI Work Hub sessions.

Setting up ImagePullSecret Admin Vault ​

To enable access to private container registries, you need to configure an Administrator Vault with registry credentials:

  1. Navigate to Administrator Settings: As an Administrator, go to Settings > Administrator Vaults Follow this procedure to create an Admin Vault. Admin Vault Insert

  2. Create New Vault: Add a new Vault with the following configuration:

    • Name: ImagePullSecret (or any descriptive name)
    • User Group: Users
    • Target: Client (SDK/Agent/CLI)
    • Format: JSON
  3. Configure Registry Credentials: Add the following content structure (the key MUST be ImagePullSecret):

json
{
  "ImagePullSecret": [
    {
      "registry": "myregistry1.mycompany.com",
      "username": "testuser1",
      "password": "testpass1",
      "email": "me@company.com"
    },
    {
      "registry": "myregistry2.mycompany.com",
      "username": "testuser2",
      "password": "testpass2",
      "email": "me@company.com"
    }
  ]
}
  1. Save the Vault: Complete the vault creation process.

Using Private Registry Images ​

Once the ImagePullSecret vault is configured, you can use private registry images in your AI Work Hub applications:

VSCode Sessions:

plaintext
myregistry1.mycompany.com/my-custom-vscode:latest

JupyterLab Sessions:

plaintext
myregistry2.mycompany.com/my-jupyter-environment:v1.0

Data Management ​

AI Work Hub leverages the ClearML library to provide comprehensive dataset management capabilities. Users can version their datasets, track changes, and ensure reproducibility. ClearML offers features such as dataset registration, versioning, and easy access to datasets across different experiments, for more details visit ClearML Documentation.

Additionally, through ESC (Enterprise Storage Cloud), users can instantiate an S3 bucket and NFS service for efficient data storage and management.

Using an S3 Bucket ​

  1. Instantiate an S3 bucket through ESC, following the ESC Documentation. Along with creating an S3 bucket, you also need to create an S3 user. This user will provide you with an S3 access key and secret key, which can be used to store and access your data in an S3-like service. The service is compatible with any boto3 client with a version lower than 1.36 Additionally, two hosts will be provided for the S3 service:

    • Private Host: Accessible only within the Swisscom network.
    • Public Host: Accessible externally. Ensure to specify public availability when creating your S3 bucket if you intend to use the public host.
  2. Follow this procedure to create an Admin Vault. Admin Vault Insert

  3. Once create an S3 user it's possible to configure your ClearML settings to use the S3 bucket. As an Administrator, navigate to Settings > Administrator Vaults . You will find two prefilled and precreated vaults:

    First Vault - Admin Vault: This vault contains the ClearML SDK configuration for S3 storage with the following structure:

    ini
    sdk {
        aws {
            s3 {
        
                credentials: [
                    {
                        # This will apply to all buckets in this host (unless key/value is specifically provided for a given bucket)
                        host: "<s3-host>:<s3-port>"
                        key: "<your-access-key>"
                        secret: "<your-secret-key>"
                        multipart: false
                        secure: true
                        verify: false 
                        # OR "/path/to/ca/bundle.crt" 
                        # OR "https://url/of/ca/bundle.crt" 
                        # OR true to verify                    
                    }
                ]
            } 
        }
    }
    sdk.development.default_output_uri = "s3://<s3-host>:<s3-port>/<bucket-name>"

    Second Vault - UI S3 Credentials: This vault contains the UI-specific S3 credentials configuration.

UI S3 Credentials Vault For both vaults, you need to specify the following parameters based on the S3 configuration from step 2:

  • Host: Your S3 service host and port
  • Key: Your S3 access key
  • Secret: Your S3 secret key
  • Bucket name: The name of your S3 bucket
  1. Create and upload your datasets to the S3 bucket. Here an example code:
python
from clearml import Dataset

# Create a new dataset in ClearML
dataset = Dataset.create(dataset_name="my dataset", 
                         dataset_project="example project")

# Add external files from S3 to the dataset
dataset.add_external_files(
    source_url="s3://host_addr:port/bucket/path_to_folder_or_file", 
    dataset_path="/my_dataset/new_folder/"
)

# Add multiple external files from S3 to the dataset
dataset.add_external_files(
    source_url=[
        "s3://host_addr:port/bucket/path_to_folder_or_file",
        "s3://host_addr:port/bucket/path_to_another_folder_or_file"
    ],
    dataset_path="/my_dataset/new_folder/"
)

# Upload the dataset to the specified S3 bucket
dataset.upload()

# Finalize the dataset
dataset.finalize()

Using NFS ​

  1. Instantiate an NFS through ESC.
  2. Make sure to have an NFS configured when instanciated an AI Portal (take a look at ESC Documentation)
  3. You can directly refer to NFS urls with ClearML SDK.

GPU Partitioning through MIG ​

NVIDIA Multi-Instance GPU (MIG) partitions one H100 GPU into isolated GPU instances. Each instance has dedicated compute resources and GPU memory. MIG is suitable for workloads that do not require a full H100 GPU, such as development sessions, model evaluation, inference, and small training jobs.

MIG instances are available for AI Work Hub workloads and GPUaaS SSH instances through predefined ClearML queues. The GPU partitioning, Kubernetes resources, and ClearML agents are managed by Swisscom. A MIG instance is requested by selecting the corresponding queue; no Kubernetes configuration is required.

Available MIG Queues ​

Each MIG queue provides one GPU instance together with a predefined amount of CPU, system memory, ephemeral storage, and workspace storage.

Queue display nameGPU memoryCPUSystem memoryEphemeral storageWorkspace storage
1x H100 10GB MIG GPUT2 BC310 GB325 GB100 GB384 GiB
1x H100 20GB MIG GPUT2 BC320 GB650 GB100 GB768 GiB
1x H100 40GB MIG GPUT2 BC340 GB12100 GB100 GB1536 GiB

INFO

The AI Work Hub user interface displays queue names with spaces. SDK and CLI integrations use the technical queue names with underscores, for example 1x_H100_20GB_MIG_GPUT2_BC3.

MIG queues are available on H100-based environments. The queues shown in the user interface determine which GPU profiles are available for the subscription.

User's Scripts in the Browser ​

To generate and edit ClearML Reports, user scripts must be allowed to run in the browser.

Tenant Admin Configuration ​

Tenant Admins control whether Tenant Users can run user scripts in the browser:

  1. Go to Settings > UI Customization.
  2. Under User Scripts, configure Run user scripts in the browser:
    • Select Allowed to let Tenant Users control this preference.
    • Select Blocked to prevent user scripts from running.
    • Select Server Default to inherit the server setting. The server default is Blocked.

Configure browser user scripts for Tenant Users

Tenant User Configuration ​

If user scripts are allowed by a Tenant Admin, Tenant Users can configure their individual preference:

  1. Go to Settings > Configuration.
  2. Under User Preferences, use Block running user's scripts in the browser. Disable the toggle to allow user scripts and enable ClearML Reports; enable it to block user scripts.

Configure the browser user scripts preference

Applications ​

VSCode ​

AI Work Hub allows users to instantiate and configure VSCode sessions for their AI and machine learning projects. Follow the steps below to set up and manage your VSCode session.

  1. Navigate to VSCode: Log in to the AI Work Hub platform and navigate to the VSCode section.

  2. Configure Session: Create a new VSCode session by selecting the following options:

    • Session Name: Choose a name for your session.
    • Git Repository: Provide the URL of the Git repository to clone.
    • Docker Image Selection: Select the appropriate Docker image for your workload. For example, you can use a custom Docker image from your repository:
    plaintext
    my-custom-repo/my-docker-image:latest

    Note: Ensure that when building Docker images for your instances, the installation of dependencies is redirected through your private proxy to fetch the required resources. By default, the provided images will attempt to fetch dependencies through the Swisscom Artifactory.

    • Extra Packages: Provide a requirements.txt file for additional packages.
    • Persistent Workspace Path: Set up a persistent workspace path to replicate content across different sessions, cloning from a previous session.
    • Queue and Agent Setting: Select the GPUs to attach to your session. See GPU Partitioning through MIG for the available MIG profiles.
    • Idle Time Configuration: Configure the idle time settings to manage resource usage efficiently.
    • Advanced Options:
      • Past Session Configuration: Refer to a past session configuration through a session name.
      • Tags: Add tags to your session for better organization.
      • VSCode Version: Specify the version of VSCode to use.
      • Extensions: List the VSCode extensions to be installed.

Navigate to VSCode

  1. Monitor Session: Once the VSCode session is instantiated, you can monitor its status through the following:
    • Console Logs: Access real-time console logs to supervise the correct working of the session.
    • Resource Metrics: Monitor CPU and GPU usage through dashboards.

Monitor VSCode Session

JupyterLab ​

AI Work Hub allows users to instantiate and configure JupyterLab sessions for their AI and machine learning projects. Follow the steps below to set up and manage your JupyterLab session.

  1. Navigate to JupyterLab: Log in to the AI Work Hub platform and navigate to the JupyterLab section.

  2. Configure Session: Create a new JupyterLab session by selecting the following options:

    • Session Name: Choose a name for your session.
    • Git Repository: Provide the URL of the Git repository to clone.
    • Docker Image Selection: Select the appropriate Docker image for your workload. For example, you can use a custom Docker image from your repository:
    plaintext
    my-custom-repo/my-docker-image:latest

    Note: Ensure that when building Docker images for your instances, the installation of dependencies is redirected through your private proxy to fetch the required resources. By default, the provided images will attempt to fetch dependencies through the Swisscom Artifactory.

    • Extra Packages: Provide a requirements.txt file for additional packages.
    • Persistent Workspace Path: Set up a persistent workspace path to replicate content across different sessions, cloning from a previous session.
    • Queue and Agent Setting: Select the GPUs to attach to your session. See GPU Partitioning through MIG for the available MIG profiles.
    • Idle Time Configuration: Configure the idle time settings to manage resource usage efficiently.
    • Advanced Options:
      • Past Session Configuration: Refer to a past session configuration through a session name.
      • Tags: Add tags to your session for better organization.
      • JupyterLab Version: Specify the version of JupyterLab to use.
      • Extensions: List the JupyterLab extensions to be installed.

Navigate to JupyterLab

  1. Monitor Session: Once the JupyterLab session is instantiated, you can monitor its status through the following:
    • Console Logs: Access real-time console logs to supervise the correct working of the session.
    • Resource Metrics: Monitor CPU and GPU usage through dashboards.

Monitor JupyterLab Session

CleanUp ​

AI Work Hub provides a cleanup tool to manage and delete old archived tasks and their associated files, such as model checkpoints, other artifacts, and debug samples. This helps in maintaining an organized and efficient workspace by removing unnecessary data.

Configure the task with the following options:

  • delete_threshold_days: Tasks older than this number of days will be deleted. The default value is 30 days.
  • cleanup_period_in_days: Repeat the cleanup service at this interval, in days. The default value is 1.0 (run once a day).
  • force_delete: If False (default), delete only Draft tasks. If True, allows deletion of tasks in any status.
  • run_as_service: If True (default), the task will be enqueued for remote execution (default queue: "services"). Otherwise, the script will execute locally.

Navigate to CleanUp

vLLM Model Deployment ​

The vLLM Model Deployment application enables users to quickly deploy Large Language Models (LLMs) as networking services over a secure endpoint. This application supports various model configurations and customizations to optimize performance and resource usage.

INFO

vLLM Version Compatibility:

Currently supports models compatible with vLLM 0.13.1. For newer vLLM versions and custom model deployments, see GPUaaS vLLM Deployment.

Key Features:

  • Multi-Model Hosting: Deploy multiple models on the same instance
  • Secure Endpoints: Authenticated network endpoints via AI Application Gateway
  • Performance Optimization: V1 engine, automatic prefix caching, speculative decoding
  • Comprehensive Monitoring: Real-time metrics for requests, latency, tokens/sec, and resource utilization

When to Use vLLM Model Deployment vs GPUaaS vLLM:

  • vLLM Model Deployment App: Best for standard models, older vLLM versions (0.13.1), and users who prefer UI-driven configuration with built-in observability
  • GPUaaS vLLM: Best for custom/recent models, newer vLLM versions (0.19.1+), and advanced customization via setup scripts

Dashboard Overview ​

Once launched, you can monitor your vLLM deployment instance through the dashboard:

Instance Information:

  • Idle Time: Time elapsed since last activity
  • Generate Token: Link to workspace Settings for token generation
  • Session ID: Unique identifier with console log access

Deployed Models Table:

  • Model name
  • Endpoint URL
  • Model access command line example
  • Interactive prompt tester with curl command generator

Performance Metrics:

  • Total Number of Requests (over time)
  • Tokens per Second
  • Latency (ms over time)

Resource Monitoring:

  • CPU usage
  • Network throughput
  • Disk performance
  • Memory performance
  • GPU utilization
  • GPU memory usage
  • GPU temperature

Console Log: Real-time console output showing setup progress, status changes, and error messages

Configuration Guide ​

Launching a New Instance ​

  1. Navigate to Applications → vLLM Model Deployment
  2. Click Launch New App or Add New
  3. Configure the instance parameters (see below)
  4. Click Launch to start the instance

Basic Configuration ​

ParameterDescriptionRequired
Instance NameName displayed in the instance list. Defaults to 'vLLM Model Deployment_DATE' if not setOptional
Service Project - Access ControlClearML Project where instance is created. Access control is based on project permissions (all read-access users can use the service)Yes
QueueClearML Queue for task enqueueing (ensure agent is assigned). For multi-GPU inference, ensure queue's pod specification defines multiple GPUsYes
AI Gateway RouteSelect a pre-configured static route from available routes (type: path). If none selected, a dynamic route is createdOptional

Model Configuration ​

Configure the behavior and performance of the model engine. Multiple model configurations can be added to the same instance.

Essential Parameters:

ParameterDescriptionDefault
CLIvLLM CLI arguments. If set, these override all other entries except Model field-
ModelClearML Model ID or HuggingFace model name (e.g., openai/gpt-oss-20b)-
Model Endpoint NameThe name used for API access-
Max Context LengthMaximum model context length. If unspecified, derived from model configAuto
GPUs (Tensor Parallel Size)Number of GPUs used to load the modelAuto-detected
GPU Memory UtilizationFraction of GPU memory to use for model executor (0 to 1)0.9
Enable ReasoningEnable model to generate reasoning contentFalse
Reasoning ParserParser for reasoning content (required if Reasoning enabled)-
Enable Auto Tool ChoiceAutomatically choose between supported tool-call parsersFalse
Tool Call ParserParser for tool-call conversion (required if Auto Tool Choice enabled)-
Multimedia Limit per PromptComma-separated list limiting multi-modal inputs (e.g., image=16,video=2)1 per modality

Performance Parameters:

ParameterDescriptionDefault
Enforce EagerForce PyTorch eager-mode (vs hybrid eager/graph mode)False
Enable Automatic Prefix CachingCache KV pairs for shared prefixes across requestsFalse
Disable Sliding WindowDisable sliding window, cap to sliding window sizeFalse
Max Number of SequencesMaximum sequences per iteration-
Max Num Batched TokensMaximum batched tokens per iteration-
Max Concurrent RequestsMaximum concurrent requests before refusing clients10

Model Loading Parameters:

ParameterDescriptionDefault
QuantizationWeight quantization method (awq, gptq, fp8, etc.)Auto
DtypeData type for model weights and activationsauto
KV Cache DtypeData type for KV cache storageauto
Model ImplementationUse vLLM or Transformers implementationAuto (vLLM preferred)
TokenizerHuggingFace tokenizer name or pathAuto
Tokenizer Modeauto (fast) or slow tokenizerauto
RevisionSpecific HuggingFace model versionDefault
HuggingFace TokenToken for accessing private models-

Note: For a complete list of vLLM model parameters and their descriptions, see the vLLM documentation

General Settings ​

ParameterDescriptionDefault
Use V1 EngineUse the vLLM V1 engine for improved performanceTrue
Trust Remote CodeTrust remote code from HuggingFaceFalse
Disable Log RequestsDisable logging requestsFalse
Disable Async Output ProcessingDisable async output processingFalse
Max CUDA Memory (GiB)Maximum CUDA memory (can exceed hardware, surplus offloaded to CPU)-
Guided Decoding BackendEngine for decoding config.json files (outlines, lm-format-enforcer)-
Distributed Executor BackendBackend for distributed workers (mp, ray)-
Load FormatModel weights format (auto, pt, safetensors, etc.)auto
Uvicorn Log LevelLog level for uvicorninfo
vLLM Log LevelLog level for vLLMinfo

Advanced Settings ​

ParameterDescriptionDefault
Swap SpaceCPU swap space size (GiB) per GPU-
Skip Tokenizer InitSkip tokenizer initializationFalse
Disable Custom All ReduceDisable custom all-reduce kernel, fall back to NCCLFalse
Enable Chunk PrefillAllow chunked prefill for requestsFalse
Speculative DecodingConfigure speculative decoding for improved inter-token latency-
Scheduling PolicyRequest scheduling: fcfs (first-come-first-served) or priorityfcfs
TaskModel task: auto, generate, or embeddingauto

WARNING

Important: Automatic CPU Offloading features should be disabled for the vLLM Model Deployment app to work correctly. Do not enable CPU offloading or disk swapping options, as these features are not fully functional in the current version

Environment Variables Configuration ​

At the end of the wizard, you can specify environment variables as key-value pairs. The following environment variables are recommended for the vLLM Model Deployment application:

Environment VariableValue
HF_ENDPOINT(https://<your-artifactory-domain>)Configure to mirror HuggingFace through your organization's Artifactory instance
HF_TOKEN (your-huggingface-token)Optional: Required for accessing gated models

These environment variables ensure compliance with your internal security policies and can improve download speeds by routing traffic through your organization's Artifactory.

VLLM Model Deployment

AI Application Gateway Integration ​

An AI Application Gateway can be configured to expose your vLLM model deployment via a static endpoint.

For HTTPS routing:

  • Provides load balancing and token-based authentication
  • JWT authentication for programmatic access
  • Full security features

For TCP routing:

  • Provides static endpoint only (no authentication)
  • Suitable for database connections requiring stable endpoints
  • Ensures consistent connection endpoints without dynamic route changes

Follow the procedure described in the AI Application Gateway section to set it up for your application (Step 1 to Step 3).