Skip to main content

Add your description here

Project description

SpaCE-GLUE

Configuration (config.yaml)

This project reads runtime settings from a YAML configuration file. The following documents the recommended format, the expected data types, which fields are required, and default values used by the code when a field is omitted.

  • Top-level keys (summary)

    • model (required): Mapping describing the model class and constructor parameters.
    • datasets (required, non-empty): Sequence of dataset entries to evaluate.
    • evaluation (optional): Settings for evaluation / results handling.
    • logging (optional): Logging configuration.
  • Any string value set precisely in the form ${VAR_NAME} will be resolved from the environment when the config is loaded. The loader calls load_dotenv() so values from a .env file are also considered. If the environment variable is not set, config loading will raise ValueError.

  • The model´s and each dataset entry's class is expected to be a full import path string (e.g. package.module.ClassName). The runner will call the configured loader to import and instantiate classes using the params mapping.

model (required)

  • Type: mapping/dict
  • Structure (recommended):
model:
  class: "models.openai_model.OpenAIModel"  # string, required: full import path to model class
  params:                                   # mapping of constructor args (optional)
    name: "gpt-4"
    base_url: "https://api.openai.com/v1"
    api_key: "${OPENAI_API_KEY}"
    temperature: 0.7

datasets (required, non-empty)

  • Type: sequence (list) of mappings
  • Each entry (recommended format):
datasets:
  - class: "data.example_dataset.ExampleDataset"  # string, required: full import path to dataset class
    params:                                       # mapping of constructor args (optional)
      limit: 20                                    

evaluation (optional)

  • Type: mapping/dict
  • Defaults:
    • results_dir: string, default: "results"
    • batch_size: int, default: 1
    • runs: list[int], default: [1] * len(datasets)
    • inference: Bool flag; default true.
    • scoring: Bool flag; default true.

Example:

evaluation:
  results_dir: "my_results"
  batch_size: 1
  runs: [3]
  inference: false
  scoring: true

logging (optional)

  • Type: mapping/dict
  • Defaults:
    • level: string, default: "INFO" (e.g. "DEBUG", "INFO", "WARNING", "ERROR")
    • format: string, default: "%(asctime)s - %(levelname)s - %(message)s"
    • file: string, optional (if provided, logs are written to this file)

Example:

logging:
  level: "INFO"
  format: "%(asctime)s - %(levelname)s - %(message)s"
  file: SpaCE-GLUE.log

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

space_glue-0.1.0.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

space_glue-0.1.0-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

Details for the file space_glue-0.1.0.tar.gz.

File metadata

  • Download URL: space_glue-0.1.0.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for space_glue-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86031ec1086010e36fa5d48be8454445ab6f55f89a16dc4bc2cae551b0d52771
MD5 723d1e05021dce87c315e1a252fb5cda
BLAKE2b-256 5801e40809fcf57642c73b6ea1ea9af11594e660cf4d616ed873ca4e8a2f1831

See more details on using hashes here.

File details

Details for the file space_glue-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: space_glue-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for space_glue-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1837755d78649ec0efec7de1523c6bafb62fd63597203ab1bd4320c6d270cd93
MD5 b87e90e470f6297b3ba6178419ce60ac
BLAKE2b-256 133df186d2125eeef5161279e038ef330eb62a4ba9358bb2329a7b2ffeb44306

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page