Skip to main content

Remote candidate training worker for the JuniperCascor neural network service

Project description

juniper-cascor-worker

Remote candidate training worker for the JuniperCascor cascade correlation neural network service.

Overview

This package enables distributed candidate training by connecting to a CasCor CandidateTrainingManager and processing training tasks on remote hardware.

Ecosystem Compatibility

This package is part of the Juniper ecosystem. Compatible with:

juniper-data juniper-cascor juniper-canopy
0.4.x 0.3.x 0.2.x

Installation

pip install juniper-cascor-worker

Note: This package requires the JuniperCascor source code to be importable on the worker machine (the worker runs CasCor's training code locally).

CLI Usage

# Basic usage
juniper-cascor-worker --manager-host 192.168.1.100 --manager-port 50000 --workers 4

# With CasCor source path
juniper-cascor-worker --manager-host 192.168.1.100 --cascor-path /opt/juniper-cascor/src --workers 8

# Full options
juniper-cascor-worker \
    --manager-host 192.168.1.100 \
    --manager-port 50000 \
    --authkey my-secret-key \
    --workers 4 \
    --mp-context forkserver \
    --log-level INFO

Python API

from juniper_cascor_worker import CandidateTrainingWorker, WorkerConfig

config = WorkerConfig(
    manager_host="192.168.1.100",
    manager_port=50000,
    authkey="my-secret-key",
    num_workers=4,
)

with CandidateTrainingWorker(config) as worker:
    worker.start()
    # Workers process tasks from the remote queue
    input("Press Enter to stop...")
    worker.stop()

Environment Variables

Variable Description Default
CASCOR_MANAGER_HOST Manager hostname 127.0.0.1
CASCOR_MANAGER_PORT Manager port 50000
CASCOR_AUTHKEY Authentication key juniper
CASCOR_NUM_WORKERS Worker count 1
CASCOR_MP_CONTEXT Multiprocessing method forkserver

Juniper Ecosystem

This package is part of the Juniper Cascade Correlation Neural Network Research Platform.

Package Description Install
juniper-data-client Dataset service client pip install juniper-data-client
juniper-cascor-client Neural network service client pip install juniper-cascor-client
juniper-cascor-worker Distributed training worker (this package) pip install juniper-cascor-worker

License

MIT License - see LICENSE for details.

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

juniper_cascor_worker-0.3.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

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

juniper_cascor_worker-0.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file juniper_cascor_worker-0.3.0.tar.gz.

File metadata

  • Download URL: juniper_cascor_worker-0.3.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for juniper_cascor_worker-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f0ab93c73ed0c202c7fc5568c5be1436e016a422f1bec78ade21120cdd9b5850
MD5 77e4a3efebd8d7c4a4b73afa1efcdfb1
BLAKE2b-256 b853b7e48b00e8bd9f7860eb52ab9ffe1f03d3bf19b59e3ac6dc04b3b34908de

See more details on using hashes here.

Provenance

The following attestation bundles were made for juniper_cascor_worker-0.3.0.tar.gz:

Publisher: publish.yml on pcalnon/juniper-cascor-worker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file juniper_cascor_worker-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for juniper_cascor_worker-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c60b6aa4a2f72afa4e1042fd3b167b6b2ff8b7eeee59c31866e143d29f500a
MD5 443103dfaa35ffb471cacb80a4b5fe26
BLAKE2b-256 619dab35adefe9de4896a306e9e52dec7d665213695e74b7ef89938318ac3851

See more details on using hashes here.

Provenance

The following attestation bundles were made for juniper_cascor_worker-0.3.0-py3-none-any.whl:

Publisher: publish.yml on pcalnon/juniper-cascor-worker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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