No project description provided
Project description
@togethercomputer/together-web3.py
from together_web3.computer import LanguageModelInferenceRequest
from together_web3.together import TogetherWeb3
together_web3 = TogetherWeb3()
result = await together_web3.language_model_inference(
from_dict(
data_class=LanguageModelInferenceRequest,
data={
"model": "gpt2",
"prompt": "Alan Turing was",
}
),
)
print("result", result)
Generate an image
python examples/example.py "Rainbow unicorn" "StableDiffusion" \
| grep image_base64 | cut -d\" -f4 | base64 -d > x.jpg && open x.jpg
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
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
together_web3-0.1.6.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for together_web3-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9cb619f8186dd1a4a8ee825dc111cd22209f28dc0d96570e0c74f8bafa3eea4 |
|
MD5 | ead30b12a83a3688a177f7602a10b099 |
|
BLAKE2b-256 | 878ef089d194920b9e008c66e54f665b99b25e402e01a56996db05eaebea942b |