Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .agents/skills/skill-author/scripts/validate_skill.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
Comment thread
psschwei marked this conversation as resolved.
# SPDX-License-Identifier: Apache-2.0

"""Validate SKILL.md frontmatter for agent skills."""

import json
Expand Down
3 changes: 3 additions & 0 deletions cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

"""cli for the M library."""
3 changes: 3 additions & 0 deletions cli/alora/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# cli/alora/__init__.py
"""alora command group package for training and uploading adapters."""
3 changes: 3 additions & 0 deletions cli/alora/commands.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

"""Typer sub-application for the `m alora` command group.

Provides three commands: `train` (fine-tune a base causal language model on a JSONL
Expand Down
3 changes: 3 additions & 0 deletions cli/alora/intrinsic_uploader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

"""Upload a trained adapter to Hugging Face Hub in the intrinsic directory layout.

Creates or updates a private Hugging Face repository and uploads adapter weights
Expand Down
3 changes: 3 additions & 0 deletions cli/alora/readme_generator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

"""LLM-assisted generator for adapter intrinsic README files.

Uses a `MelleaSession` with rejection sampling to derive README template variables
Expand Down
3 changes: 3 additions & 0 deletions cli/alora/train.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

"""Fine-tune a causal language model to produce a LoRA or aLoRA adapter.

Loads a JSONL dataset of `item`/`label` pairs, applies an 80/20 train/validation
Expand Down
3 changes: 3 additions & 0 deletions cli/alora/upload.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

"""Upload a trained LoRA or aLoRA adapter to Hugging Face Hub.

Creates the target repository if it does not already exist and pushes the entire
Expand Down
3 changes: 3 additions & 0 deletions cli/decompose/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

"""Typer sub-application for the `m decompose` command group.

Exposes a single `run` command that takes a task prompt (from a file or
Expand Down
3 changes: 3 additions & 0 deletions cli/decompose/decompose.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# decompose/decompose.py
"""Implementation of the `m decompose run` CLI command.

Expand Down
3 changes: 3 additions & 0 deletions cli/decompose/logging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import logging
import sys
from enum import StrEnum
Expand Down
3 changes: 3 additions & 0 deletions cli/decompose/pipeline.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# decompose/pipeline.py
"""Core decomposition pipeline for turning a task query into scheduled subtasks.

Expand Down
3 changes: 3 additions & 0 deletions cli/decompose/prompt_modules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from .constraint_extractor import constraint_extractor as constraint_extractor
from .general_instructions import general_instructions as general_instructions
from .subtask_constraint_assign import (
Expand Down
3 changes: 3 additions & 0 deletions cli/decompose/prompt_modules/_prompt_modules.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from abc import ABC, abstractmethod
from collections import UserString
from collections.abc import Callable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._constraint_extractor import constraint_extractor as constraint_extractor
from ._exceptions import (
BackendGenerationError as BackendGenerationError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import re
from collections.abc import Callable
from typing import Any, TypeVar, final
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from typing import Any


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._icl_examples import icl_examples as default_icl_examples
from ._prompt import (
get_system_prompt as get_system_prompt,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._icl_examples import icl_examples as icl_examples
from ._types import ICLExample as ICLExample
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example_1 import example as example_1
from ._example_2 import example as example_2
from ._example_3 import example as example_3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from typing import TypedDict


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from jinja2 import Environment, FileSystemLoader
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._exceptions import (
BackendGenerationError as BackendGenerationError,
TagExtractionError as TagExtractionError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from typing import Any


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import re
from collections.abc import Callable
from typing import Any, TypeVar, final
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._icl_examples import icl_examples as default_icl_examples
from ._prompt import (
get_system_prompt as get_system_prompt,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._icl_examples import icl_examples as icl_examples
from ._types import ICLExample as ICLExample
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example_1 import example as example_1
from ._example_2 import example as example_2
from ._example_3 import example as example_3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from typing import TypedDict


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from jinja2 import Environment, FileSystemLoader
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._exceptions import (
BackendGenerationError as BackendGenerationError,
TagExtractionError as TagExtractionError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from typing import Any


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._icl_examples import icl_examples as default_icl_examples
from ._prompt import (
get_system_prompt as get_system_prompt,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._icl_examples import icl_examples as icl_examples
from ._types import ICLExample as ICLExample
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example import example as example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from pathlib import Path

from .._types import ICLExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

from ._example_1 import example as example_1
from ._example_2 import example as example_2
from ._example_3 import example as example_3
Expand Down
Loading
Loading