transllm


Nametransllm JSON
Version 0.1.8 PyPI version JSON
download
home_pagehttps://github.com/dsdanielpark/hf-transllm
SummaryLLMtranslator translates and generates text in multiple languages.
upload_time2023-06-26 19:32:03
maintainer
docs_urlNone
authordaniel park
requires_python>=3.6
license
keywords python api bard google bard large language model chatbot api google api chatbot
VCS
bugtrack_url
requirements bardapi requests colorama httpx tokenizers transformers deep_translator torch deepl openai torch accelerate sentencepiece translang
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Development Status :: 3 - Alpha

# Python Package: hf-transllm

<p align="left">
<a><img alt="PyPI package" src="https://img.shields.io/badge/pypi-transllm-black"></a>
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fdsdanielpark%2Fhf-transllm&count_bg=%23000000&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false"/></a>
<a href="https://pypi.org/project/transllm/"><img alt="PyPI" src="https://img.shields.io/pypi/v/transllm"></a>
</p>


> LLMtranslator translates and generates text in multiple languages using LLMs(Large Language Models) on hugging-face repository.

![](assets/transllm.png)

### Introducing hf-transllm: Unlock the Power of Multilingual Exploration

Discover the hf-transllm package, a seamless integration of Hugging Face's inference module and translation APIs. Overcome limitations in retraining and evaluating large language models in different languages. Explore diverse results effortlessly, leveraging translation API services. Emphasizing versatility over efficiency, hf-transllm enables you to delve into the outcomes of Hugging Face's models in various languages.


<br>


<br>

## Installation
```
pip install transllm
```
Or
```
pip install git+https://github.com/dsdanielpark/hf-trnasllm.git
```

<br>

## CLI
If you wish to use CLI:
```
git clone https://github.com/dsdanielpark/hf-transllm
cd hf-transllm
pip install -r requirements.txt
```
```bash
python main.py --hfmodel <openlm-research/open_llama_3b> --lang <ko> --translator <google>
```
There can be issues with various dependencies such as Hugging Face's Transformers, SentencePiece, Torch, and CUDA. Please set up the appropriate environment by searching online.
<br>

<br>

## Usage    

> Simple Usage
```python
from transllm import LLMtranslator

open_llama3b_kor = LLMtranslator('openlm-research/open_llama_3b', target_lang='ko', translator='google') # Korean

trnaslated_answer = open_llama3b_kor.generate("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘")
print(trnaslated_answer)
```
<br>

> Official Google Translation API
- Support Languages: https://cloud.google.com/translate/docs/languages?hl=ko
> Unofficial Google Trnaslator for non-profit purposes (such as feature testing)
- Support Languages: https://github.com/nidhaloff/deep-translator/blob/master/deep_translator/constants.py
```python
from transllm import LLMtranslator

# Set huggingface repository
model_path = 'openlm-research/open_llama_3b'
# model_path = 'openlm-research/open_llama_7b'
# model_path = 'openlm-research/open_llama_13b'

# Get TransLLM Object (Korean)
# open_llama3b_kor = LLMtranslator(model_path, target_lang='ko', translator='google_official', google_api_key='xxxxxx') # Official Google Cloud Translation API 
open_llama3b_kor = LLMtranslator(model_path, target_lang='ko', translator='google') # Unofficial test



# Using Prompt in multi-language
prompt = "나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘"
trnaslated_answer = open_llama3b_kor.generate(prompt)
print(trnaslated_answer)
```

<br>

> DeepL, Open AI, Bard
- Support Languages: https://www.deepl.com/pro/select-country?cta=header-pro-button/#developer

Open AI, Bard use pre-prompt for translation.
```python
from transllm import LLMtranslator

# Set huggingface repository
model_path = 'openlm-research/open_llama_3b'
# model_path = 'openlm-research/open_llama_7b'
# model_path = 'openlm-research/open_llama_13b'

# Choose Translate Service API: DeepL, OpenAI, Bard
open_llama3b_kor = LLMtranslator(model_path, target_lang='ES', translator='deepl', deepl_api='xxxxxxx') # Language == Spanish
# open_llama3b_kor = LLMtranslator(model_path, target_lang='korean', translator='openai', openai_api='xxxxxxx', openai_model='gpt-3.5-turbo')
# open_llama3b_kor = LLMtranslator(model_path, target_lang='korean', translator='bard', bard_api='xxxxxxx')

# Using Prompt in multi-language
prompt = "나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘"
trnaslated_answer = open_llama3b_kor.generate(prompt)
print(trnaslated_answer)
```

<br>


> Google Colab Example

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1117ikGEmU4FncBDl1xCC2IhPPDOr75lX?usp=sharing) 
![](assets/hf-transllm-colab.png)

<br><br>


## Customized Inference
Applying LLMs to the majority of Hugging Face repositories is generally feasible. However, it can be challenging to apply them to objects that require unique tokenizers or inference processes. In such cases, it is recommended to customize the usage by incorporating a translation module for prompts.

In other words, if you are familiar with the inference process or code from Hugging Face repositories, you can customize the translation object by adding a translation module before and after the known inference process or code. Check [translang repository](https://github.com/dsdanielpark/translang) for more details.
```python
import torch
from trnasllm import LLMtranslator


class MyLLMtranslator(LLMtranslator):
    def __init__(
        self,
        model_path,
        target_lang="ko",
        translator="google",
        torch_dtype=torch.float16,
        device_map="auto",
        deepl_api=None,
        bard_api=None,
        openai_model="gpt-3.5-turbo",
        openai_api=None
    ):
        super().__init__(
            model_path=model_path,
            target_lang=target_lang,
            translator=translator,
            torch_dtype=torch_dtype,
            device_map=device_map,
            deepl_api=deepl_api,
            bard_api=bard_api,
            openai_model=openai_model,
            openai_api=openai_api
        )

    def inference(self, prompt: str) -> str:
        # Custom logic for inference
        # You can override the implementation of the inference method here
        # and provide your own logic for generating the translated answer
        # Remember to return the translated answer as a string.

        answer = customizing_process(prompt)
        # Custom inference logic...
        
        return answer
```

<br>

## About Google Translator
Commercial use or official use of the Google Translate service is chargeable. Please provide the `translator="google_official"` and `google_api_key={YOUR_API_KEY}` arguments. Please responsibly use the `translator="google"` argument for the purpose of simple functionality verification. Refer to the following [notebook file](https://github.com/dsdanielpark/translang/blob/main/scripts/google_official.ipynb) and [official link](https://cloud.google.com/translate?utm_source=google&utm_medium=cpc&utm_campaign=japac-KR-all-en-dr-BKWS-all-mv-trial-EXA-dr-1605216&utm_content=text-ad-none-none-DEV_c-CRE_631260646738-ADGP_Hybrid%20%7C%20BKWS%20-%20EXA%20%7C%20Txt%20~%20AI%20&%20ML_Translation%20AI_google%20translate%20api_main-KWID_43700073965169292-kwd-14329410560&userloc_1009871-network_g&utm_term=KW_google%20translate%20api&gclid=Cj0KCQjwy9-kBhCHARIsAHpBjHjTvBCM7NNcf4fYGsog4ViQErgJvACFXB5JCNUT0h_EpQ5kyUT-SrIaApZBEALw_wcB&gclsrc=aw.ds&hl=ko) for more information. Use the google argument only for some basic functionality testing.


## [FAQs](./documents/FAQs.md)
Use `Ctrl`+`F` for help in this `FAQs.md`.

## Contributors

I would like to express my sincere gratitude for the contributions made by all the contributors.

<a href="https://github.com/dsdanielpark/hf-transllm/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=dsdanielpark/hf-transllm" />
</a>


<br>

## License
[MIT](https://opensource.org/license/mit/) <br>
I hold no legal responsibility; 
```
The MIT License (MIT)

Copyright (c) 2023 Minwoo Park

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

## Bugs and Issues
Sincerely grateful for any reports on new features or bugs. Your valuable feedback on the code is highly appreciated.

## Contacts
- Core maintainer: [Daniel Park, South Korea](https://github.com/DSDanielPark) <br>
- E-mail: parkminwoo1991@gmail.com <br>

## Reference 
[1] https://huggingface.co/docs/api-inference/index <br>
  
<br>
            

  
*Copyright (c) 2023 MinWoo Park, South Korea*<br>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dsdanielpark/hf-transllm",
    "name": "transllm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "Python,API,Bard,Google Bard,Large Language Model,Chatbot API,Google API,Chatbot",
    "author": "daniel park",
    "author_email": "parkminwoo1991@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9e/c5/f3768e06837a3eb8bfe6d98c4fc4dccc31619859bd9607c2f03ecf8d6f33/transllm-0.1.8.tar.gz",
    "platform": null,
    "description": "Development Status :: 3 - Alpha\r\n\r\n# Python Package: hf-transllm\r\n\r\n<p align=\"left\">\r\n<a><img alt=\"PyPI package\" src=\"https://img.shields.io/badge/pypi-transllm-black\"></a>\r\n<a href=\"https://github.com/psf/black\"><img alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"></a>\r\n<a href=\"https://hits.seeyoufarm.com\"><img src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fdsdanielpark%2Fhf-transllm&count_bg=%23000000&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false\"/></a>\r\n<a href=\"https://pypi.org/project/transllm/\"><img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/transllm\"></a>\r\n</p>\r\n\r\n\r\n> LLMtranslator translates and generates text in multiple languages using LLMs(Large Language Models) on hugging-face repository.\r\n\r\n![](assets/transllm.png)\r\n\r\n### Introducing hf-transllm: Unlock the Power of Multilingual Exploration\r\n\r\nDiscover the hf-transllm package, a seamless integration of Hugging Face's inference module and translation APIs. Overcome limitations in retraining and evaluating large language models in different languages. Explore diverse results effortlessly, leveraging translation API services. Emphasizing versatility over efficiency, hf-transllm enables you to delve into the outcomes of Hugging Face's models in various languages.\r\n\r\n\r\n<br>\r\n\r\n\r\n<br>\r\n\r\n## Installation\r\n```\r\npip install transllm\r\n```\r\nOr\r\n```\r\npip install git+https://github.com/dsdanielpark/hf-trnasllm.git\r\n```\r\n\r\n<br>\r\n\r\n## CLI\r\nIf you wish to use CLI:\r\n```\r\ngit clone https://github.com/dsdanielpark/hf-transllm\r\ncd hf-transllm\r\npip install -r requirements.txt\r\n```\r\n```bash\r\npython main.py --hfmodel <openlm-research/open_llama_3b> --lang <ko> --translator <google>\r\n```\r\nThere can be issues with various dependencies such as Hugging Face's Transformers, SentencePiece, Torch, and CUDA. Please set up the appropriate environment by searching online.\r\n<br>\r\n\r\n<br>\r\n\r\n## Usage    \r\n\r\n> Simple Usage\r\n```python\r\nfrom transllm import LLMtranslator\r\n\r\nopen_llama3b_kor = LLMtranslator('openlm-research/open_llama_3b', target_lang='ko', translator='google') # Korean\r\n\r\ntrnaslated_answer = open_llama3b_kor.generate(\"\ub098\uc640 \ub0b4 \ub3d9\ub144\ubc30\ub4e4\uc774 \uc88b\uc544\ud558\ub294 \ub274\uc9c4\uc2a4\uc5d0 \ub300\ud574\uc11c \uc54c\ub824\uc918\")\r\nprint(trnaslated_answer)\r\n```\r\n<br>\r\n\r\n> Official Google Translation API\r\n- Support Languages: https://cloud.google.com/translate/docs/languages?hl=ko\r\n> Unofficial Google Trnaslator for non-profit purposes (such as feature testing)\r\n- Support Languages: https://github.com/nidhaloff/deep-translator/blob/master/deep_translator/constants.py\r\n```python\r\nfrom transllm import LLMtranslator\r\n\r\n# Set huggingface repository\r\nmodel_path = 'openlm-research/open_llama_3b'\r\n# model_path = 'openlm-research/open_llama_7b'\r\n# model_path = 'openlm-research/open_llama_13b'\r\n\r\n# Get TransLLM Object (Korean)\r\n# open_llama3b_kor = LLMtranslator(model_path, target_lang='ko', translator='google_official', google_api_key='xxxxxx') # Official Google Cloud Translation API \r\nopen_llama3b_kor = LLMtranslator(model_path, target_lang='ko', translator='google') # Unofficial test\r\n\r\n\r\n\r\n# Using Prompt in multi-language\r\nprompt = \"\ub098\uc640 \ub0b4 \ub3d9\ub144\ubc30\ub4e4\uc774 \uc88b\uc544\ud558\ub294 \ub274\uc9c4\uc2a4\uc5d0 \ub300\ud574\uc11c \uc54c\ub824\uc918\"\r\ntrnaslated_answer = open_llama3b_kor.generate(prompt)\r\nprint(trnaslated_answer)\r\n```\r\n\r\n<br>\r\n\r\n> DeepL, Open AI, Bard\r\n- Support Languages: https://www.deepl.com/pro/select-country?cta=header-pro-button/#developer\r\n\r\nOpen AI, Bard use pre-prompt for translation.\r\n```python\r\nfrom transllm import LLMtranslator\r\n\r\n# Set huggingface repository\r\nmodel_path = 'openlm-research/open_llama_3b'\r\n# model_path = 'openlm-research/open_llama_7b'\r\n# model_path = 'openlm-research/open_llama_13b'\r\n\r\n# Choose Translate Service API: DeepL, OpenAI, Bard\r\nopen_llama3b_kor = LLMtranslator(model_path, target_lang='ES', translator='deepl', deepl_api='xxxxxxx') # Language == Spanish\r\n# open_llama3b_kor = LLMtranslator(model_path, target_lang='korean', translator='openai', openai_api='xxxxxxx', openai_model='gpt-3.5-turbo')\r\n# open_llama3b_kor = LLMtranslator(model_path, target_lang='korean', translator='bard', bard_api='xxxxxxx')\r\n\r\n# Using Prompt in multi-language\r\nprompt = \"\ub098\uc640 \ub0b4 \ub3d9\ub144\ubc30\ub4e4\uc774 \uc88b\uc544\ud558\ub294 \ub274\uc9c4\uc2a4\uc5d0 \ub300\ud574\uc11c \uc54c\ub824\uc918\"\r\ntrnaslated_answer = open_llama3b_kor.generate(prompt)\r\nprint(trnaslated_answer)\r\n```\r\n\r\n<br>\r\n\r\n\r\n> Google Colab Example\r\n\r\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1117ikGEmU4FncBDl1xCC2IhPPDOr75lX?usp=sharing) \r\n![](assets/hf-transllm-colab.png)\r\n\r\n<br><br>\r\n\r\n\r\n## Customized Inference\r\nApplying LLMs to the majority of Hugging Face repositories is generally feasible. However, it can be challenging to apply them to objects that require unique tokenizers or inference processes. In such cases, it is recommended to customize the usage by incorporating a translation module for prompts.\r\n\r\nIn other words, if you are familiar with the inference process or code from Hugging Face repositories, you can customize the translation object by adding a translation module before and after the known inference process or code. Check [translang repository](https://github.com/dsdanielpark/translang) for more details.\r\n```python\r\nimport torch\r\nfrom trnasllm import LLMtranslator\r\n\r\n\r\nclass MyLLMtranslator(LLMtranslator):\r\n    def __init__(\r\n        self,\r\n        model_path,\r\n        target_lang=\"ko\",\r\n        translator=\"google\",\r\n        torch_dtype=torch.float16,\r\n        device_map=\"auto\",\r\n        deepl_api=None,\r\n        bard_api=None,\r\n        openai_model=\"gpt-3.5-turbo\",\r\n        openai_api=None\r\n    ):\r\n        super().__init__(\r\n            model_path=model_path,\r\n            target_lang=target_lang,\r\n            translator=translator,\r\n            torch_dtype=torch_dtype,\r\n            device_map=device_map,\r\n            deepl_api=deepl_api,\r\n            bard_api=bard_api,\r\n            openai_model=openai_model,\r\n            openai_api=openai_api\r\n        )\r\n\r\n    def inference(self, prompt: str) -> str:\r\n        # Custom logic for inference\r\n        # You can override the implementation of the inference method here\r\n        # and provide your own logic for generating the translated answer\r\n        # Remember to return the translated answer as a string.\r\n\r\n        answer = customizing_process(prompt)\r\n        # Custom inference logic...\r\n        \r\n        return answer\r\n```\r\n\r\n<br>\r\n\r\n## About Google Translator\r\nCommercial use or official use of the Google Translate service is chargeable. Please provide the `translator=\"google_official\"` and `google_api_key={YOUR_API_KEY}` arguments. Please responsibly use the `translator=\"google\"` argument for the purpose of simple functionality verification. Refer to the following [notebook file](https://github.com/dsdanielpark/translang/blob/main/scripts/google_official.ipynb) and [official link](https://cloud.google.com/translate?utm_source=google&utm_medium=cpc&utm_campaign=japac-KR-all-en-dr-BKWS-all-mv-trial-EXA-dr-1605216&utm_content=text-ad-none-none-DEV_c-CRE_631260646738-ADGP_Hybrid%20%7C%20BKWS%20-%20EXA%20%7C%20Txt%20~%20AI%20&%20ML_Translation%20AI_google%20translate%20api_main-KWID_43700073965169292-kwd-14329410560&userloc_1009871-network_g&utm_term=KW_google%20translate%20api&gclid=Cj0KCQjwy9-kBhCHARIsAHpBjHjTvBCM7NNcf4fYGsog4ViQErgJvACFXB5JCNUT0h_EpQ5kyUT-SrIaApZBEALw_wcB&gclsrc=aw.ds&hl=ko) for more information. Use the google argument only for some basic functionality testing.\r\n\r\n\r\n## [FAQs](./documents/FAQs.md)\r\nUse `Ctrl`+`F` for help in this `FAQs.md`.\r\n\r\n## Contributors\r\n\r\nI would like to express my sincere gratitude for the contributions made by all the contributors.\r\n\r\n<a href=\"https://github.com/dsdanielpark/hf-transllm/graphs/contributors\">\r\n  <img src=\"https://contrib.rocks/image?repo=dsdanielpark/hf-transllm\" />\r\n</a>\r\n\r\n\r\n<br>\r\n\r\n## License\r\n[MIT](https://opensource.org/license/mit/) <br>\r\nI hold no legal responsibility; \r\n```\r\nThe MIT License (MIT)\r\n\r\nCopyright (c) 2023 Minwoo Park\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n```\r\n\r\n## Bugs and Issues\r\nSincerely grateful for any reports on new features or bugs. Your valuable feedback on the code is highly appreciated.\r\n\r\n## Contacts\r\n- Core maintainer: [Daniel Park, South Korea](https://github.com/DSDanielPark) <br>\r\n- E-mail: parkminwoo1991@gmail.com <br>\r\n\r\n## Reference \r\n[1] https://huggingface.co/docs/api-inference/index <br>\r\n  \r\n<br>\r\n            \r\n\r\n  \r\n*Copyright (c) 2023 MinWoo Park, South Korea*<br>\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "LLMtranslator translates and generates text in multiple languages.",
    "version": "0.1.8",
    "project_urls": {
        "Homepage": "https://github.com/dsdanielpark/hf-transllm"
    },
    "split_keywords": [
        "python",
        "api",
        "bard",
        "google bard",
        "large language model",
        "chatbot api",
        "google api",
        "chatbot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0c591a6613777ae0656b1734932fb50c8cdbdbf16c3f4773770d93e5202413fd",
                "md5": "d2da9f170354eb697d0c59cb471d12ee",
                "sha256": "ff836a6c442e305991b9dabb4596f29170952fa7ada8590389da63d204752ce9"
            },
            "downloads": -1,
            "filename": "transllm-0.1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d2da9f170354eb697d0c59cb471d12ee",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7797,
            "upload_time": "2023-06-26T19:32:00",
            "upload_time_iso_8601": "2023-06-26T19:32:00.159401Z",
            "url": "https://files.pythonhosted.org/packages/0c/59/1a6613777ae0656b1734932fb50c8cdbdbf16c3f4773770d93e5202413fd/transllm-0.1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ec5f3768e06837a3eb8bfe6d98c4fc4dccc31619859bd9607c2f03ecf8d6f33",
                "md5": "e855f09cce4a51e2d3f098253a76924c",
                "sha256": "b97bb6ffa3b2204795f7a9a0a41e175033223d06840d6a2341942b693075977e"
            },
            "downloads": -1,
            "filename": "transllm-0.1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "e855f09cce4a51e2d3f098253a76924c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 7184,
            "upload_time": "2023-06-26T19:32:03",
            "upload_time_iso_8601": "2023-06-26T19:32:03.077078Z",
            "url": "https://files.pythonhosted.org/packages/9e/c5/f3768e06837a3eb8bfe6d98c4fc4dccc31619859bd9607c2f03ecf8d6f33/transllm-0.1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-26 19:32:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dsdanielpark",
    "github_project": "hf-transllm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "bardapi",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "colorama",
            "specs": []
        },
        {
            "name": "httpx",
            "specs": []
        },
        {
            "name": "tokenizers",
            "specs": [
                [
                    "==",
                    "0.6.0"
                ]
            ]
        },
        {
            "name": "transformers",
            "specs": []
        },
        {
            "name": "deep_translator",
            "specs": []
        },
        {
            "name": "torch",
            "specs": []
        },
        {
            "name": "deepl",
            "specs": []
        },
        {
            "name": "openai",
            "specs": []
        },
        {
            "name": "torch",
            "specs": [
                [
                    ">=",
                    "1.12.0"
                ]
            ]
        },
        {
            "name": "accelerate",
            "specs": []
        },
        {
            "name": "sentencepiece",
            "specs": [
                [
                    "==",
                    "0.1.97"
                ]
            ]
        },
        {
            "name": "translang",
            "specs": []
        }
    ],
    "lcname": "transllm"
}
        
Elapsed time: 0.11689s