together-worker
Example
cat examples/echo.py
from together_worker.fast_inference import FastInferenceInterface
class Echo(FastInferenceInterface):
def setup(self, args):
self.message = " to you too."
def dispatch_request(self, args, env):
prompt = args[0]["prompt"]
return {
"choices": [ { "text": prompt + self.message } ],
}
Test with local REST server
pip install --upgrade together-worker
python -m together_worker.serving examples.echo Echo
curl -X POST http://127.0.0.1:5001/ -d '{ "prompt": "test123" }'
{"choices": [{"text": "test123 to you too."}]}
Setup dev
make install
Publish to PyPi
GitHub repo > Releases > Draft a new Release > Choose a tag > Create new tag on publish >
Name the tag using the current version from pyproject.toml with a "v" e.g. v1.0.9.
Publish Release
In the repo toolbar select > Actions
- Verify the publish workflow is running and completes successfully
Metadata
Release files for together-worker 0.1.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| together_worker-0.1.22.tar.gz | 8.4 kB | Without provenance | Details for together_worker-0.1.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| together_worker-0.1.22-py3-none-any.whl | Python 3 | none | any | Details for together_worker-0.1.22-py3-none-any.whl |
Total release size: 18.6 kB
Release files / together_worker-0.1.22.tar.gz
| Download URL | together_worker-0.1.22.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bd97bb3a85cb8d358cbad7f89da133afa0b2a3d7a26378560de9572756887e9
|
|
BLAKE2b-256 checksum How to use checksums |
0d997d7a716b18841915f7ff1849e3b8838e4160d84c328edfe7eb0687eaa4ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / together_worker-0.1.22-py3-none-any.whl
| Download URL | together_worker-0.1.22-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f37d058968e90a6f66d283f32706cab21c2e8b904b27da5a49c32202865d2606
|
|
BLAKE2b-256 checksum How to use checksums |
feb8fb82a7cbe4c94aad93de205cfc34ca3c107b021af0a9564e41c61725de23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for together-worker 0.1.22
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.