UlizaLlama is a 7B Parameters language model that builds upon the foundation of Jacaranda/kiswallama-pretrained.
Model Card
UlizaLlama is a 7B Parameters language model that builds upon the foundation of Jacaranda/kiswallama-pretrained. Jacaranda/kiswallama-pretrained is a large language model continually-pretrained with 321,530,045 swahili tokens and a customized tokenizer with a swahili vocabulary of 20,000 tokens to extend the capabilities of Meta/Llama2. It offers significant improvements in both encoding and decoding for Swahili text, surpassing the Swahili performance of Meta/Llama2. Moreover, Jacaranda/kiswallama-pretrained excels in providing accurate next-word completions in Swahili, a capability which Meta/Llama2 falls short of. UlizaLlama is optimized for downstream tasks, notably those demanding…
Excerpt from the card by Health.
Configuration
- Architecture
- LlamaForCausalLM
- Context length (tokens)
- 4,096
- Layers
- 32
- Hidden size
- 4,096
- Feed-forward size
- 11,008
- Attention heads
- 32
- Key/value heads
- 32
- Vocabulary size
- 52,458
- RoPE base
- 10000
- Stored precision
- float16
- Model type
- llama
Identity and Version
- Repository
- Jacaranda/UlizaLlama
- Publisher
- Health
- Task
- Question answering
- Modality
- Text
- Library
- transformers
- Parameters
- Not stated by the source
- Languages
- sw, en
- Revision
- 6775e74bddd064bae0aef38f93423f52bb0fd00a
- First published
- 2023-10-14
- Last updated
- 2023-11-22
Files and Weights
10 files, 13.8 GB in total. The weights are 2 files totalling 13.8 GB in bin.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| pytorch_model-00001-of-00002.bin | Weights | 10.0 GB | 69235dd638fe |
| pytorch_model-00002-of-00002.bin | Weights | 3.8 GB | 53048136009c |
| config.json | Configuration | 663 B | — |
| generation_config.json | Configuration | 183 B | — |
| pytorch_model.bin.index.json | Configuration | 23.9 KB | — |
| special_tokens_map.json | Configuration | 411 B | — |
| README.md | Documentation | 12.2 KB | — |
| .gitattributes | Repository | 1.5 KB | — |
| tokenizer.model | Tokenizer | 839.7 KB | 65afafd81cc1 |
| tokenizer_config.json | Tokenizer | 824 B | — |
License and Download
- License
- Not stated by the source
- Access
- Open weights, no gate
- Download size
- 13.8 GB
Released by Health through its official repository on Hugging Face.
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 13.8 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About UlizaLlama
What is UlizaLlama's context length?
4,096 tokens, from the maximum position embeddings in its published configuration.
Similar Models
Splinter-base is the pretrained model discussed in the paper Few-Shot Question Answering by Pretraining Span Selection (at ACL 2021). Its original repository can be found here. The model is case-sensitive. Note: This model doesn't contain the pretrained weights for the QASS layer (see paper for details), and therefore the QASS layer is randomly initialized upon loading it. For the model with those weights, see tau/splinter-base-qass. Splinter is a model that is pretrained in a self-supervised fashion for few-shot question answering. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an…
This model can be used for the task of question answering. The model should not be used to intentionally create hostile or alienating environments for people. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. The model creators note in the associated paper: The model creators note in the associated paper: The model…
This model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. This model reaches a F1 score of 87.1 on the dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).
This model can be used for the task of Question Answering on Legal Documents. Read: An Open Source Contractual Language Understanding Application Using Machine Learning for detailed information on training procedure, dataset preprocessing and evaluation. See CUAD dataset card for more information. See CUAD dataset card for more information. Used V100/P100 from Google Colab Pro Python, Transformers Mohammed Rakib in collaboration with Ezi Ozoani and the Hugging Face team Use the code below to get started with the model.