litGPT

View on PyPIReverse Dependencies (2)

0.5.3 litgpt-0.5.3-py3-none-any.whl

Wheel Details

Project: litGPT
Version: 0.5.3
Filename: litgpt-0.5.3-py3-none-any.whl
Download: [link]
Size: 176335
MD5: 91e6d2ac5e4a9dd767ad11f6d55c1c98
SHA256: b0a22183d456827c6b9d0914e64ec4b242a9823ab7baffd6dcab5ea206efbc14
Uploaded: 2024-10-29 20:10:52 +0000

dist-info

METADATA

Metadata-Version: 2.1
Name: litgpt
Version: 0.5.3
Summary: Hackable implementation of state-of-the-art open-source LLMs
Author-Email: Lightning AI <contact[at]lightning.ai>
Project-Url: homepage, https://github.com/lightning-AI/litgpt
Project-Url: documentation, https://github.com/lightning-AI/litgpt/tutorials
License: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [2023] Lightning AI Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Requires-Dist: torch (<=2.4.1,>=2.2.0)
Requires-Dist: numpy (<2.0)
Requires-Dist: lightning (==2.4.0)
Requires-Dist: jsonargparse[signatures] (<=4.32.1,>=4.30.1)
Requires-Dist: huggingface-hub (>=0.23.5)
Requires-Dist: safetensors (>=0.4.3)
Requires-Dist: tokenizers (>=0.15.2)
Requires-Dist: tqdm (>=4.66.0)
Requires-Dist: bitsandbytes (==0.42.0); extra == "all"
Requires-Dist: sentencepiece (>=0.2.0); extra == "all"
Requires-Dist: requests (>=2.31.0); extra == "all"
Requires-Dist: litdata (==0.2.17); extra == "all"
Requires-Dist: litserve (>=0.1.5); extra == "all"
Requires-Dist: zstandard (>=0.22.0); extra == "all"
Requires-Dist: pandas (>=1.9.0); extra == "all"
Requires-Dist: pyarrow (>=15.0.2); extra == "all"
Requires-Dist: tensorboard (>=2.14.0); extra == "all"
Requires-Dist: torchmetrics (>=1.3.1); extra == "all"
Requires-Dist: datasets (>=2.18.0); extra == "all"
Requires-Dist: transformers (>=4.38.0); extra == "all"
Requires-Dist: lm-eval (>=0.4.2); extra == "all"
Requires-Dist: huggingface-hub[hf_transfer] (>=0.21.0); extra == "all"
Requires-Dist: uvloop (>=0.2.0); sys_platform != "win32" and extra == "all"
Requires-Dist: pytest (>=8.1.1); extra == "test"
Requires-Dist: pytest-rerunfailures (>=14.0); extra == "test"
Requires-Dist: pytest-timeout (>=2.3.1); extra == "test"
Requires-Dist: pytest-dependency (>=0.6.0); extra == "test"
Requires-Dist: transformers (>=4.38.0); extra == "test"
Requires-Dist: einops (>=0.7.0); extra == "test"
Requires-Dist: protobuf (>=4.23.4); extra == "test"
Provides-Extra: all
Provides-Extra: test
Description-Content-Type: text/markdown
License-File: LICENSE
[Description omitted; length: 26963 characters]

WHEEL

Wheel-Version: 1.0
Generator: setuptools (75.3.0)
Root-Is-Purelib: true
Tag: py3-none-any

RECORD

Path Digest Size
litgpt/__init__.py sha256=jDAQoqNVt72qsjP2JhNeFqynNPm7NYSJSFkLWTCAeek 882
litgpt/__main__.py sha256=BWpLQ9bQX0yUFO0u0cZW5tQ8dGF6Vez1HK-ODArLVUA 3085
litgpt/adapter.py sha256=vNnc9DYLNgQ4Nu5oXS3NmomqxzUViEeQzEikl86Op6s 8315
litgpt/adapter_v2.py sha256=C01wOcPnMlIN6p6ozEBRpx8D5CBVj8JYdC-KIN98xVU 11889
litgpt/api.py sha256=xAUTq9bGhofiTfE3PB09F59NESRfxzkqTVCyCEWUesM 30497
litgpt/args.py sha256=iTFNWD5HO7fRwuQ6bscwbw1ZePCWSG7dvUIRy00mECQ 3946
litgpt/config.py sha256=0D3dRXKgGYMKMN3WxY89z08TJjCJRDJQ0yfXuwZSj5I 62186
litgpt/lora.py sha256=2ypj-1pB970ZC-nt0Zi1neigeOiPsl5TvWoe7rZp6FM 35789
litgpt/model.py sha256=BBafg7S3C7zp9O8yr76AFwB3JPRv2Hs8k8bcH-vKIkI 27648
litgpt/pretrain.py sha256=DDf8p-3wH9fYScg5UCbZDLAmSimoZyJSjCrp9v6xmXo 19629
litgpt/prompts.py sha256=zi6nKCsVYEWfIpsi75fbQruKlnHFmOctNUZ3MMesp1c 16689
litgpt/tokenizer.py sha256=dBXw1JyeweBZwef1u6MpKJx2LlmT7QgRJ7-5esvC6U0 7926
litgpt/utils.py sha256=e5TYknG3Y2TFI9PqnkrYmFeymmo6m-_3B31kVW1kOvw 33205
litgpt/chat/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
litgpt/chat/base.py sha256=bcq1Jip1FOFXJgQdgguljPu8STBcNe3PYuFBZQeNeO4 10741
litgpt/data/__init__.py sha256=fQBAUurorfOkLeGCoZCWKzL66e70oLwzd0IO6MaOjyw 1085
litgpt/data/alpaca.py sha256=r82GLAX6GIPtO7mHJxcYM9IwrB0RTfPxJmajaAmrRow 5864
litgpt/data/alpaca_2k.py sha256=N76qymUSimrsFCvdbaVHJzujWVpbsdKZsXIkevLp9U8 2008
litgpt/data/alpaca_gpt4.py sha256=50cVVe2ANrqARgbc__97ePpbJVRNKg92lK81schaMK8 950
litgpt/data/base.py sha256=L0oye2BHvNhJgyK_45YPai9bC6msJSxfTlTfTrYvHWg 6232
litgpt/data/deita.py sha256=azte4NWa2Qs-ThCYTyirh9_ACM-mJwqaD94x6Uz_Z8g 4663
litgpt/data/dolly.py sha256=4ZZWU-o_Ez1GfGAsAd8p4Tob9kNswKkk6HmRqidhs8A 2937
litgpt/data/flan.py sha256=8LDBBpsINv8bBImfU3LGZRSMqF3j90LbIbSz4fcMdNI 6956
litgpt/data/json_data.py sha256=u22ZirXHXN-w17kP0USH-98en_VBxFIcCghjbJna_4c 6352
litgpt/data/lima.py sha256=yiUvO_h3h_mwgM17lxwxm8ghE7tutOTW1xXh74OGpd8 5452
litgpt/data/lit_data.py sha256=oqOncnzejSGoNyGJ0ANeIXFJbq_ryNdbodKde-HkJcE 2888
litgpt/data/longform.py sha256=NBGXYijT-8ndn9wa68Dsgm2kkiyso5Hy9pmP6ExUWpE 3490
litgpt/data/microllama.py sha256=-JaXMWBK_nb1u668POKaoiik4usUDoYBJOWVBV9qDQA 529
litgpt/data/openwebtext.py sha256=H1SqjM0c6FdNHBlRgD31QtCwniPIK4yEFRxCHibJP0Y 4389
litgpt/data/prepare_slimpajama.py sha256=-YzY2JwO0jJxPIS7tB61foSm_VfZfXDRdJAEg0TcTiU 2087
litgpt/data/prepare_starcoder.py sha256=fhn0spbiZVVpOKiFH0nU1eListwspP9erwFB1wd4-Ew 2465
litgpt/data/text_files.py sha256=KR90s0bqTNSE5eEw-7nt4DOW70CaL36DdUDcSumYiIQ 6018
litgpt/data/tinyllama.py sha256=I6btNArG7f7VCa3GzhITqnR9zC2Mjep7RuIw_jViTvo 4310
litgpt/data/tinystories.py sha256=j3IMvo_5Dd9M2FXzKLrjZJiQ_gwuHirXJNLGOK_ltoU 5585
litgpt/deploy/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
litgpt/deploy/serve.py sha256=GmNFninp7fEj5zXNXRbws0LpEzQo_5CjAy_kKLoJS14 8204
litgpt/eval/evaluate.py sha256=VKAuLHulb6jWhsJK8D391xTOcuT_VZbuqd1KGa3d-Es 4806
litgpt/finetune/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
litgpt/finetune/adapter.py sha256=6VtIygLvvqHp5dr7Fbq9y__gZrXs4D8ys3KFIqKje1k 19651
litgpt/finetune/adapter_v2.py sha256=k_d5YYLnrU4N26xr4Rh9xMFr3eFgqJvuJF1zv82qnL0 19518
litgpt/finetune/full.py sha256=8o_K1nqJn0kW38CkquVE5yDly864Uj7xHN-WOa3BBn4 18104
litgpt/finetune/lora.py sha256=O7lxqpu88E8_b5kyjMV3FN2W0ZFX-a99oKbL4EDngV8 20608
litgpt/generate/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
litgpt/generate/adapter.py sha256=1o8sLjNFBOI0mzoz4Q1_W7oFG24GflicVk6rg8K3q4E 6406
litgpt/generate/adapter_v2.py sha256=PH1Gh-7GeohzdO040yIU3NlCmWPlIF7hX9QdiovRYNg 6426
litgpt/generate/base.py sha256=te8XYYbRcqGKguMmAo_yZGWScweoTq8vxUdaM4e2C9g 23092
litgpt/generate/full.py sha256=QM9-k9-n3SN63qd30SqwWZ-FEw8drLB-g_EzGeiQink 6182
litgpt/generate/sequentially.py sha256=mjt5gxFqz52_eaWhE1c4KQm7ZIYFwbDEKty3Jximg8w 13056
litgpt/generate/tp.py sha256=0GnHBZYOz_WjdesbCy09QMDSHYHJ35DFVfGgmp_nEgM 11592
litgpt/scripts/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
litgpt/scripts/convert_hf_checkpoint.py sha256=_-WainGEAw99Iw2EVU2fiHUaweE1-OjhtmzbDO79824 25102
litgpt/scripts/convert_lit_checkpoint.py sha256=4uiGsPzsQLbwCZC48UxFc9b34u7SSqQksIs_Yaf_ZaE 16666
litgpt/scripts/convert_pretrained_checkpoint.py sha256=vXbCKxd-B37cyhmMAkK5JWCf_8CkhQyaFgROK65RHcI 2217
litgpt/scripts/download.py sha256=q90Nbry73Ae4YTu8tKS7HhgsxwDNRbut7Xb64NKm_U8 7123
litgpt/scripts/merge_lora.py sha256=0SpW2Yf7biCXtRt1vSgD0tjOjM7Tbjv5ixytpLywSU4 4680
litgpt-0.5.3.dist-info/LICENSE sha256=q4nOyhnKUxAFaZCVylQvmC-sku_YL5VPSawXqpmjfNo 11344
litgpt-0.5.3.dist-info/METADATA sha256=ahbzsszOqHUsN7ADL0nG_RJ8XsO3I4Xd9C8YIDPilhw 41874
litgpt-0.5.3.dist-info/WHEEL sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc 91
litgpt-0.5.3.dist-info/entry_points.txt sha256=UcG0l9f6FK9iEmpX1mnMTdscHT3rhXXwt4zYZ_TG4fg 48
litgpt-0.5.3.dist-info/top_level.txt sha256=YNwCJuqRlIUN2VqcjhC80EHA7zRNCX6r7Iaey718Ons 7
litgpt-0.5.3.dist-info/RECORD

top_level.txt

litgpt

entry_points.txt

litgpt = litgpt.__main__:main