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.

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.1.0.tar.gz (11.6 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.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: juniper_cascor_worker-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c95642be6657ed22706120946bf7aad99dccec26bf29ba012015f4c1a5af8484
MD5 d033983393f713eb2ab735afc17175ca
BLAKE2b-256 98ec1b83da31278a3311b53116b9c6549c88fb6c932262c1cfee0e81163b1c5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for juniper_cascor_worker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c2bb591e656166d8189b3f1e5f589a63e4e75fb9f056f9cd3c23fc09939be7d
MD5 48be08db572d853c0d76ab8f6e9e9180
BLAKE2b-256 b3e6f16cadfedfe8e0ff4cf58c75caa5728763c4c1ea7135258e617c39c334e8

See more details on using hashes here.

Provenance

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