### Run TituLM benchmark with lm-evaluation-harness Source: https://github.com/hishab-nlp/titulm/blob/main/README.md Use these commands to clone the forked lm-evaluation-harness repository, install it, and run the Bangla language model benchmark script. Pass required arguments to the script according to your needs. ```bash git clone https://github.com/hishab-nlp/lm-evaluation-harness.git cd lm-evaluation-harness pip install -e . # Running the benchmark # https://github.com/hishab-nlp/lm-evaluation-harness/blob/main/scripts/bangla_lm_benchmark.py cd scripts # pass arguemnt according to your needs python bangla_lm_benchmark.py ``` -------------------------------- ### Generate text with TituLM using transformers pipeline Source: https://github.com/hishab-nlp/titulm/blob/main/README.md Use this snippet to generate text with a TituLM model using the Hugging Face transformers pipeline. It loads the model with bfloat16 precision and automatic device mapping, then generates a continuation for the Bangla prompt "আমাদের দেশের নাম". Requires the transformers library installed. ```python # pip install transformers import torch from transformers import pipeline model_id = "hishab/titulm-llama-3.2-3b-v2.0" pipe = pipeline( "text-generation", model=model_id, torch_dtype=torch.bfloat16, device_map="auto" ) pipe("আমাদের দেশের নাম") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.