How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="axolotl-ai-co/Falcon-E-1.2-3B-Exp")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("axolotl-ai-co/Falcon-E-1.2-3B-Exp")
model = AutoModelForCausalLM.from_pretrained("axolotl-ai-co/Falcon-E-1.2-3B-Exp", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Falcon-E-1.2-3B-Exp

This is the model card of Falcon-E-1.2-3B-Exp, a ternary (1.58bits) language model trained on SFT agentic, and STEM data using axolotl framework combined with onebitllm library.

The model has been trained starting from tiiuae/Falcon-E-3B-Base-prequantized checkpoint using full-finetuning for 3 epochs. Below are the hyper-parameters used for fine-tuning:

micro_batch_size: 1
num_epochs: 3
optimizer: adamw_torch
lr_scheduler: cosine
learning_rate: 8.0e-4
# adamw hyperparams
adam_beta1: 0.9
adam_beta2: 0.95
warmup_steps: 128

And we used a context parallel size of 8.

Usage

The model uses think mode by default, this can be disabled and switched to non-thiking mode. You can use the model with different frameworks such as HF transformers, llama.cpp or mlx-lm

transformers

transformers chat axolotl-ai-co/Falcon-E-1.2-3B-Exp

llama.cpp

# thinking mode
llama-cli -m axolotl-ai-co/Falcon-E-1.2-3B-Exp:TQ2_0 --reasoning-format auto --temp 0.2 -cnv

# non thinking mode
llama-cli -m axolotl-ai-co/Falcon-E-1.2-3B-Exp:TQ2_0 --reasoning-format auto --temp 0.2 -cnv --reasoning-budget 0.0

mlx-lm

mlx_lm.chat axolotl-ai-co/Falcon-E-1.2-3B-Exp --temperature 0.2

Further fine-tuning the model

You can further fine-tune this model, or the base model using their prequantized version. Refer to the axolotl config to get started on fine-tuning these models:

Aknowledgement

Falcon-E-Chat-Exp models are built using Falcon LLM technology from the Technology Innovation Institute.

Downloads last month
13
Safetensors
Model size
0.9B params
Tensor type
BF16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including axolotl-ai-co/Falcon-E-1.2-3B-Exp

Article mentioning axolotl-ai-co/Falcon-E-1.2-3B-Exp