text-generationtransformersapache-2.0

TinyLlama/TinyLlama-1.1B-Chat-v1.0

huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0

1,784Likes
1,466,502Downloads
2024-03-17Updated
transformerssafetensorsllamatext-generationconversationalendataset:cerebras/SlimPajama-627Bdataset:bigcode/starcoderdatadataset:HuggingFaceH4/ultrachat_200kdataset:HuggingFaceH4/ultrafeedback_binarizedlicense:apache-2.0text-generation-inferenceendpoints_compatibleregion:usdeploy:sagemakerdeploy:azure

Model card

TinyLlama-1.1B

https://github.com/jzhang38/TinyLlama

The TinyLlama project aims to pretrain a 1.1B Llama model on 3 trillion tokens. With some proper optimization, we can achieve this within a span of "just" 90 days using 16 A100-40G GPUs 🚀🚀. The training has started on 2023-09-01.

We adopted exactly the same architecture and tokenizer as Llama 2. This means TinyLlama can be plugged and played in many open-source projects built upon Llama. Besides, TinyLlama is compact with only 1.1B parameters. This compactness allows it to cater to a multitude of applications demanding a restricted computation and memory footprint.

This Model

This is the chat model finetuned on top of TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T. We follow HF's Zephyr's training recipe. The model was " initially fine-tuned on a variant of the UltraChat dataset, which contains a diverse range of synthetic dialogues generated by ChatGPT. We then further aligned the model with 🤗 TRL's DPOTrainer on the openbmb/UltraFeedback dataset, which contain 64k prompts and model completions that are ranked by GPT-4."

How to use

You will need the transformers>=4.34 Do check the TinyLlama github page for more information.

``python # Install transformers from source - only needed for versions # You are a friendly chatbot who always responds in the style of a pirate. # # How many helicopters can a human eat in one sitting? # # ... ``

Mirrored from the Hugging Face Hub and served from the Conceptio Open Knowledge Archive. Read the original card at https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0.