Helium-1 preview is a lightweight language model with 2B parameters, targeting edge and mobile devices. It supports the following languages: English, French, German, Italian, Portuguese, Spanish.
⚠️ Helium-1 Preview is a base model, which was not fine-tuned to follow instructions or human preferences. For most downstream use cases, the model should be aligned with supervised fine-tuning, RLHF or related methods.
The intended use of the Helium model is research and development of natural language processing systems, including but not limited to language generation and understanding. The model can be used in English, French, German, Italian, Portuguese and Spanish. For most downstream use cases, the model should be aligned with supervised fine-tuning, RLHF or related methods.
The model should not be used in other languages than the ones on which it was trained. The model is not intended to be used for any malicious or illegal activities of any kind. The model was not fine-tuned to follow instructions, and thus should not be used as such.
Helium-1 preview is a base language model, which was not aligned to human preferences. As such, the model can generate incorrect, biased, harmful or generally unhelpful content. Thus, the model should not be used for downstream applications without further alignment, evaluations and mitigations of risks.
import torch
from transformers import pipeline
model_id = "kyutai/helium-1-preview-2b"
pipe = pipeline(
"text-generation",
model=model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
text = pipe("Hello, today is a great day to")
The model was evaluated on MMLU, TriviaQA, NaturalQuestions, ARC Easy & Challenge, Open Book QA, Common Sense QA, Physical Interaction QA, Social Interaction QA, HellaSwag, WinoGrande, Multilingual Knowledge QA, FLORES 200.
We report accuracy on MMLU, ARC, OBQA, CSQA, PIQA, SIQA, HellaSwag, WinoGrande. We report exact match on TriviaQA, NQ and MKQA. We report BLEU on FLORES.
import os
os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com"
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("kyutai/helium-1-preview-2b", revision="645c94758493d06ba1b4706c5674d6510e3a84cb")
model = AutoModelForCausalLM.from_pretrained("kyutai/helium-1-preview-2b", revision="645c94758493d06ba1b4706c5674d6510e3a84cb", device_map="auto")