Bolmo was tested with transformers 4.57.3 and Python 3.11:
pip install transformers>=4.57.3
Bolmo additionally requires the
xlstm package
(which needs Python>=3.11):
pip install xlstm==2.0.4
Inference
You can use Bolmo with the standard HuggingFace transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda"
bolmo = AutoModelForCausalLM.from_pretrained("allenai/Bolmo-1B", trust_remote_code=True).to(device)
tokenizer = AutoTokenizer.from_pretrained("allenai/Bolmo-1B", trust_remote_code=True)
message = ["Language modeling is "]
input_ids = tokenizer(message, return_tensors="pt")["input_ids"].to(device)
# `max_new_tokens` is the amount of bytes to generate
response = bolmo.generate(input_ids, max_new_tokens=256, do_sample=True, temperature=0.1)
print(tokenizer.decode(response[0], skip_special_tokens=True))
Model Description
Developed by:
Allen Institute for AI (Ai2)
Model type:
a byte-level autoregressive language model.
Language(s) (NLP):
English
License:
This model is licensed under Apache 2.0. It is intended for research and educational use in accordance with Ai2's
Responsible Use Guidelines
.
Like any base language model or fine-tuned model without safety filtering, these models can easily be prompted by users to generate harmful and sensitive content. Such content may also be produced unintentionally, especially in cases involving bias, so we recommend that users consider the risks when applying this technology. Additionally, many statements from Bolmo or any LLM are often inaccurate, so facts should be verified.
Citation
Forthcoming!
Runs of allenai Bolmo-1B on huggingface.co
1.8K
Total runs
16
24-hour runs
223
3-day runs
567
7-day runs
1.1K
30-day runs
More Information About Bolmo-1B huggingface.co Model
Bolmo-1B huggingface.co is an AI model on huggingface.co that provides Bolmo-1B's model effect (), which can be used instantly with this allenai Bolmo-1B model. huggingface.co supports a free trial of the Bolmo-1B model, and also provides paid use of the Bolmo-1B. Support call Bolmo-1B model through api, including Node.js, Python, http.
Bolmo-1B huggingface.co is an online trial and call api platform, which integrates Bolmo-1B's modeling effects, including api services, and provides a free online trial of Bolmo-1B, you can try Bolmo-1B online for free by clicking the link below.
allenai Bolmo-1B online free url in huggingface.co:
Bolmo-1B is an open source model from GitHub that offers a free installation service, and any user can find Bolmo-1B on GitHub to install. At the same time, huggingface.co provides the effect of Bolmo-1B install, users can directly use Bolmo-1B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.