diff --git a/.gitattributes b/.gitattributes index 53d7257..1358ad5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,47 +1,47 @@ *.7z filter=lfs diff=lfs merge=lfs -text *.arrow filter=lfs diff=lfs merge=lfs -text *.bin filter=lfs diff=lfs merge=lfs -text -*.bin.* filter=lfs diff=lfs merge=lfs -text *.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text *.ftz filter=lfs diff=lfs merge=lfs -text *.gz filter=lfs diff=lfs merge=lfs -text *.h5 filter=lfs diff=lfs merge=lfs -text *.joblib filter=lfs diff=lfs merge=lfs -text *.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text *.model filter=lfs diff=lfs merge=lfs -text *.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text *.onnx filter=lfs diff=lfs merge=lfs -text *.ot filter=lfs diff=lfs merge=lfs -text *.parquet filter=lfs diff=lfs merge=lfs -text *.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text *.pt filter=lfs diff=lfs merge=lfs -text *.pth filter=lfs diff=lfs merge=lfs -text *.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text *.tflite filter=lfs diff=lfs merge=lfs -text *.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text *.xz filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text -*.zstandard filter=lfs diff=lfs merge=lfs -text -*.tfevents* filter=lfs diff=lfs merge=lfs -text -*.db* filter=lfs diff=lfs merge=lfs -text -*.ark* filter=lfs diff=lfs merge=lfs -text -**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text -**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text -**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text -*.safetensors filter=lfs diff=lfs merge=lfs -text -*.ckpt filter=lfs diff=lfs merge=lfs -text -*.gguf* filter=lfs diff=lfs merge=lfs -text -*.ggml filter=lfs diff=lfs merge=lfs -text -*.llamafile* filter=lfs diff=lfs merge=lfs -text -*.pt2 filter=lfs diff=lfs merge=lfs -text -*.mlmodel filter=lfs diff=lfs merge=lfs -text -*.npy filter=lfs diff=lfs merge=lfs -text -*.npz filter=lfs diff=lfs merge=lfs -text -*.pickle filter=lfs diff=lfs merge=lfs -text -*.pkl filter=lfs diff=lfs merge=lfs -text -*.tar filter=lfs diff=lfs merge=lfs -text -*.wasm filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text -*tfevents* filter=lfs diff=lfs merge=lfs -text \ No newline at end of file +*tfevents* filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text +platypus-30b.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index 7059406..ce6d687 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,391 @@ --- -license: Apache License 2.0 +language: +- en +license: other +tags: +- llama +metrics: +- MMLU +- ARC +- HellaSwag +- TruthfulQA +model_name: Platypus 30B +base_model: lilloukas/Platypus-30B +inference: false +model_creator: lilloukas +model_type: llama +prompt_template: 'Below is an instruction that describes a task. Write a response + that appropriately completes the request. -#model-type: -##如 gpt、phi、llama、chatglm、baichuan 等 -#- gpt -#domain: -##如 nlp、cv、audio、multi-modal -#- nlp + ### Instruction: -#language: -##语言代码列表 https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa -#- cn + {prompt} -#metrics: -##如 CIDEr、Blue、ROUGE 等 -#- CIDEr -#tags: -##各种自定义,包括 pretrained、fine-tuned、instruction-tuned、RL-tuned 等训练方法和其他 -#- pretrained + ### Response: -#tools: -##如 vllm、fastchat、llamacpp、AdaSeq 等 -#- vllm + ' +quantized_by: TheBloke --- -### 当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重,可浏览“模型文件”页面获取。 -#### 您可以通过如下git clone命令,或者ModelScope SDK来下载模型 -SDK下载 -```bash -#安装ModelScope -pip install modelscope + + +
+TheBloke's LLM work is generously supported by a grant from andreessen horowitz (a16z)
如果您是本模型的贡献者,我们邀请您根据模型贡献文档,及时完善模型卡片内容。
\ No newline at end of file +## How to use with LangChain + +Here are guides on using llama-cpp-python and ctransformers with LangChain: + +* [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp) +* [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers) + + + + + +## Discord + +For further support, and discussions on these models and AI in general, join us at: + +[TheBloke AI's Discord server](https://discord.gg/theblokeai) + +## Thanks, and how to contribute + +Thanks to the [chirper.ai](https://chirper.ai) team! + +Thanks to Clay from [gpus.llm-utils.org](llm-utils)! + +I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. + +If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. + +Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. + +* Patreon: https://patreon.com/TheBlokeAI +* Ko-Fi: https://ko-fi.com/TheBlokeAI + +**Special thanks to**: Aemon Algiz. + +**Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov + + +Thank you to all my generous patrons and donaters! + +And thank you again to a16z for their generous grant. + + + + +# Original model card: Lilloukas' Platypus 30B + + +# 🥳 Platypus-30B has arrived! + +Platypus-30B is an instruction fine-tuned model based on the LLaMA-30B transformer architecture. + +| Metric | Value | +|-----------------------|-------| +| MMLU (5-shot) | 64.2 | +| ARC (25-shot) | 64.6 | +| HellaSwag (10-shot) | 84.3 | +| TruthfulQA (0-shot) | 45.8 | +| Avg. | 64.7 | + +We use state-of-the-art [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above. + +## Model Details + +* **Trained by**: Cole Hunter & Ariel Lee +* **Model type:** **Platypus-30B** is an auto-regressive language model based on the LLaMA transformer architecture. +* **Language(s)**: English +* **License for base weights**: License for the base LLaMA model's weights is Meta's [non-commercial bespoke license](https://github.com/facebookresearch/llama/blob/main/MODEL_CARD.md). + +| Hyperparameter | Value | +|---------------------------|-------| +| \\(n_\text{parameters}\\) | 33B | +| \\(d_\text{model}\\) | 6656 | +| \\(n_\text{layers}\\) | 60 | +| \\(n_\text{heads}\\) | 52 | + +## Training Dataset + +Dataset of highly filtered and curated question and answer pairs. Release TBD. + +## Training Procedure + +`garage-bAInd/Platypus-30B` was instruction fine-tuned using LoRA on 4 A100 80GB. For training details and inference instructions please see the [Platypus-30B](https://github.com/arielnlee/Platypus-30B.git) GitHub repo. + +## Reproducing Evaluation Results +Install LM Evaluation Harness: +``` +git clone https://github.com/EleutherAI/lm-evaluation-harness +cd lm-evaluation-harness +pip install -e . +``` +Each task was evaluated on a single A100 80GB GPU. + +ARC: +``` +python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks arc_challenge --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/arc_challenge_25shot.json --device cuda --num_fewshot 25 +``` + +HellaSwag: +``` +python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks hellaswag --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/hellaswag_10shot.json --device cuda --num_fewshot 10 +``` + +MMLU: +``` +python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks hendrycksTest-* --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/mmlu_5shot.json --device cuda --num_fewshot 5 +``` + +TruthfulQA: +``` +python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks truthfulqa_mc --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/truthfulqa_0shot.json --device cuda +``` +## Limitations and bias + +The base LLaMA model is trained on various data, some of which may contain offensive, harmful, and biased content that can lead to toxic behavior. See Section 5.1 of the LLaMA paper. We have not performed any studies to determine how fine-tuning on the aforementioned datasets affect the model's behavior and toxicity. Do not treat chat responses from this model as a substitute for human judgment or as a source of truth. Please use responsibly. + +## Citations + +```bibtex +@article{touvron2023llama, + title={LLaMA: Open and Efficient Foundation Language Models}, + author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and Rodriguez, Aurelien and Joulin, Armand and Grave, Edouard and Lample, Guillaume}, + journal={arXiv preprint arXiv:2302.13971}, + year={2023} +} + +@article{hu2021lora, + title={LoRA: Low-Rank Adaptation of Large Language Models}, + author={Hu, Edward J. and Shen, Yelong and Wallis, Phillip and Allen-Zhu, Zeyuan and Li, Yuanzhi and Wang, Shean and Chen, Weizhu}, + journal={CoRR}, + year={2021} +} +``` + + diff --git a/config.json b/config.json new file mode 100644 index 0000000..a4ba21b --- /dev/null +++ b/config.json @@ -0,0 +1,3 @@ +{ + "model_type": "llama" +} \ No newline at end of file diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..159097f --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"framework": "pytorch", "task": "others", "allow_remote": true} \ No newline at end of file diff --git a/platypus-30b.Q2_K.gguf b/platypus-30b.Q2_K.gguf new file mode 100644 index 0000000..ac6b24e --- /dev/null +++ b/platypus-30b.Q2_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e94048add4331952dbd51d8253afd9dc3698c77b95b5923a38fdebde1442d51 +size 13502545312 diff --git a/platypus-30b.Q3_K_L.gguf b/platypus-30b.Q3_K_L.gguf new file mode 100644 index 0000000..b44f129 --- /dev/null +++ b/platypus-30b.Q3_K_L.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc1a0a21877f6443edcaf861391cc2e0bccba8c788b48611d9063786e1116270 +size 17279758752 diff --git a/platypus-30b.Q3_K_M.gguf b/platypus-30b.Q3_K_M.gguf new file mode 100644 index 0000000..8d04ef5 --- /dev/null +++ b/platypus-30b.Q3_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43e3f68dac93da8afd2cdf8bf3929e8dae4f26f4e2631f4f54ed74a11384ab90 +size 15761551776 diff --git a/platypus-30b.Q3_K_S.gguf b/platypus-30b.Q3_K_S.gguf new file mode 100644 index 0000000..d411b73 --- /dev/null +++ b/platypus-30b.Q3_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:675eb0b5828690b770a978263f75cdce2bdd2cf7cab6e5c7a20a5d77731fd96b +size 14064112032 diff --git a/platypus-30b.Q4_0.gguf b/platypus-30b.Q4_0.gguf new file mode 100644 index 0000000..d674bc6 --- /dev/null +++ b/platypus-30b.Q4_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc7219b2388ade7b03346fe8c2f6763b1f00e0a0afe99c4039d1f9818e638a63 +size 18355967392 diff --git a/platypus-30b.Q4_K_M.gguf b/platypus-30b.Q4_K_M.gguf new file mode 100644 index 0000000..d46c895 --- /dev/null +++ b/platypus-30b.Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8375b181ca5cd31feab69ee4c188bc3e9187aba7bc622621df3d35b3401e790e +size 19621139872 diff --git a/platypus-30b.Q4_K_S.gguf b/platypus-30b.Q4_K_S.gguf new file mode 100644 index 0000000..015a651 --- /dev/null +++ b/platypus-30b.Q4_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1330e1dc2e8deda93a76e535368a74340988deb8b98d670da2f277d54fed6124 +size 18437756320 diff --git a/platypus-30b.Q5_0.gguf b/platypus-30b.Q5_0.gguf new file mode 100644 index 0000000..469eba2 --- /dev/null +++ b/platypus-30b.Q5_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0028ecd08f515f146a205667ded983edd968fdd813b1e4aa596b2f16dae1e1cf +size 22395360672 diff --git a/platypus-30b.Q5_K_M.gguf b/platypus-30b.Q5_K_M.gguf new file mode 100644 index 0000000..d077610 --- /dev/null +++ b/platypus-30b.Q5_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b89ef6132a2aeac735320308770d7bb483b07e3e3455ea7a76b65e587907e48 +size 23047116192 diff --git a/platypus-30b.Q5_K_S.gguf b/platypus-30b.Q5_K_S.gguf new file mode 100644 index 0000000..f3e70ce --- /dev/null +++ b/platypus-30b.Q5_K_S.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6eab757c0aebc5ea09b93f2350dc09c9c8beac5fbb44b0ca1f10ee4f0345717b +size 22395360672 diff --git a/platypus-30b.Q6_K.gguf b/platypus-30b.Q6_K.gguf new file mode 100644 index 0000000..0c7b209 --- /dev/null +++ b/platypus-30b.Q6_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cf483d17ee1c439fef2e99ab769cb87f80080c0a082b97a6ff85bd6a37494b5 +size 26687216032 diff --git a/platypus-30b.Q8_0.gguf b/platypus-30b.Q8_0.gguf new file mode 100644 index 0000000..53734cf --- /dev/null +++ b/platypus-30b.Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff8f33602c73181fc3a048e302a0d439dc3e05fafe306b0d556696e85b255679 +size 34565124512