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.2.0.tar.gz (11.9 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.2.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: juniper_cascor_worker-0.2.0.tar.gz
  • Upload date:
  • Size: 11.9 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.2.0.tar.gz
Algorithm Hash digest
SHA256 0cfcae864c0fdbb64bfca268dcaa9cc8d861634ddf2d0441f80a6dc3bac1230e
MD5 5dee3423a0fc3695773a0205ed9746fa
BLAKE2b-256 30d124c5ee11736ac11a8ed3e90a72175e436eda265c3ac3f4052ba7e65a7b9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for juniper_cascor_worker-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for juniper_cascor_worker-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99b5961e1a3b095af0eab58a4db288d5da17be648a6e33cd856e957f7a69b6d3
MD5 98b999c39c4d131d39aa73088fec3cb4
BLAKE2b-256 8292fce9547dc0ff1a379f0fda62de0e6c8e300888c0c3b1751f21cb260975b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for juniper_cascor_worker-0.2.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