Falcon3
family of Open Foundation Models is a set of pretrained and instruct LLMs ranging from 1B to 10B.
This repository contains the
Falcon3-Mamba-7B-Instruct
. It achieves, compared to similar SSM-based models of the same size, state of art results (at release's time) on reasoning, language understanding, instruction following, code and mathematics tasks.
Falcon3-Mamba-7B-Instruct supports a context length up to 32K and was mainly trained on english corpus.
from transformers import AutoTokenizer, AutoModelForCausalLM
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "tiiuae/Falcon3-Mamba-7B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "How many hours in one day?"
messages = [
{"role": "system", "content": "You are a helpful friendly assistant Falcon3 from TII, try to follow instructions as much as possible."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=1024
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids inzip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Benchmarks
We report in the following table our internal pipeline benchmarks. For the benchmarks marked by star, we normalize the results with HuggingFace score normalization:
Falcon3-Mamba-7B-Instruct huggingface.co is an AI model on huggingface.co that provides Falcon3-Mamba-7B-Instruct's model effect (), which can be used instantly with this tiiuae Falcon3-Mamba-7B-Instruct model. huggingface.co supports a free trial of the Falcon3-Mamba-7B-Instruct model, and also provides paid use of the Falcon3-Mamba-7B-Instruct. Support call Falcon3-Mamba-7B-Instruct model through api, including Node.js, Python, http.
Falcon3-Mamba-7B-Instruct huggingface.co is an online trial and call api platform, which integrates Falcon3-Mamba-7B-Instruct's modeling effects, including api services, and provides a free online trial of Falcon3-Mamba-7B-Instruct, you can try Falcon3-Mamba-7B-Instruct online for free by clicking the link below.
tiiuae Falcon3-Mamba-7B-Instruct online free url in huggingface.co:
Falcon3-Mamba-7B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find Falcon3-Mamba-7B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of Falcon3-Mamba-7B-Instruct install, users can directly use Falcon3-Mamba-7B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Falcon3-Mamba-7B-Instruct install url in huggingface.co: