together-web3


Nametogether-web3 JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/togethercomputer/web3.py
Summary
upload_time2023-04-28 17:38:31
maintainer
docs_urlNone
authortogether
requires_python>=3.7.2,<3.11
licenseMIT
keywords nlp vision speech deep learning transformer pytorch tensorflow bert gpt-2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # @togethercomputer/together-web3.py [![build](https://github.com/togethercomputer/together-web3.py/actions/workflows/build.yml/badge.svg)](https://github.com/togethercomputer/together-web3.py/actions/workflows/build.yml)

```python
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)
```

See [examples/example.py](examples/example.py)

### Generate an image

```console
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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/togethercomputer/web3.py",
    "name": "together-web3",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.2,<3.11",
    "maintainer_email": "",
    "keywords": "NLP,vision,speech,deep,learning,transformer,pytorch,tensorflow,BERT,GPT-2",
    "author": "together",
    "author_email": "together@together.xyz",
    "download_url": "https://files.pythonhosted.org/packages/f0/68/0e41c27007ecfcd6e103cb94c517c9d2ec70823992dc3421985757364e2b/together_web3-0.1.5.tar.gz",
    "platform": null,
    "description": "# @togethercomputer/together-web3.py [![build](https://github.com/togethercomputer/together-web3.py/actions/workflows/build.yml/badge.svg)](https://github.com/togethercomputer/together-web3.py/actions/workflows/build.yml)\n\n```python\nfrom together_web3.computer import LanguageModelInferenceRequest\nfrom together_web3.together import TogetherWeb3\n\ntogether_web3 = TogetherWeb3()\nresult = await together_web3.language_model_inference(\n    from_dict(\n        data_class=LanguageModelInferenceRequest,\n        data={\n            \"model\": \"gpt2\",\n            \"prompt\": \"Alan Turing was\",\n        }\n    ),\n)\nprint(\"result\", result)\n```\n\nSee [examples/example.py](examples/example.py)\n\n### Generate an image\n\n```console\npython examples/example.py \"Rainbow unicorn\" \"StableDiffusion\" \\\n  | grep image_base64 | cut -d\\\" -f4 | base64 -d > x.jpg && open x.jpg\n```\n\n## Publish to PyPi\n\nGitHub repo > Releases > Draft a new Release > Choose a tag > Create new tag on publish >\n\nName the tag using the current version from pyproject.toml with a \"v\" e.g. `v1.0.9`.\n\n> Publish Release\n\nIn the repo toolbar select > Actions\n\n- Verify the publish workflow is running and completes successfully\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "",
    "version": "0.1.5",
    "split_keywords": [
        "nlp",
        "vision",
        "speech",
        "deep",
        "learning",
        "transformer",
        "pytorch",
        "tensorflow",
        "bert",
        "gpt-2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "897ce6a5ff884e6c4064e1b424c94cbaa0cceab36ffe0579af57240a88622c6d",
                "md5": "c02a1569106910cec8154258bb0bc579",
                "sha256": "34335338f498d0cacd6b3e7598f5d824a935039b6e619feec6e975e1097063a0"
            },
            "downloads": -1,
            "filename": "together_web3-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c02a1569106910cec8154258bb0bc579",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.2,<3.11",
            "size": 8978,
            "upload_time": "2023-04-28T17:38:29",
            "upload_time_iso_8601": "2023-04-28T17:38:29.648418Z",
            "url": "https://files.pythonhosted.org/packages/89/7c/e6a5ff884e6c4064e1b424c94cbaa0cceab36ffe0579af57240a88622c6d/together_web3-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0680e41c27007ecfcd6e103cb94c517c9d2ec70823992dc3421985757364e2b",
                "md5": "865e7fd73c1a3adb0f793f3d01bb5da6",
                "sha256": "a2178c896cfaf4c243146d0a14e0673af8be542ec77d9c7fb41ef2358c508fd3"
            },
            "downloads": -1,
            "filename": "together_web3-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "865e7fd73c1a3adb0f793f3d01bb5da6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.2,<3.11",
            "size": 8861,
            "upload_time": "2023-04-28T17:38:31",
            "upload_time_iso_8601": "2023-04-28T17:38:31.545852Z",
            "url": "https://files.pythonhosted.org/packages/f0/68/0e41c27007ecfcd6e103cb94c517c9d2ec70823992dc3421985757364e2b/together_web3-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-28 17:38:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "togethercomputer",
    "github_project": "web3.py",
    "lcname": "together-web3"
}
        
Elapsed time: 0.09212s