Any-to-Any
Transformers
Safetensors
GGUF
English
lfm3_omni
image-text-to-text
lfm3
lfm3-omni
omni
multimodal
vision
audio
video
reasoning
dpo
abliterated
compressed-reasoning
custom_code
conversational
Instructions to use madscience75/LFM3-AA1o with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use madscience75/LFM3-AA1o with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageTextToText model = AutoModelForImageTextToText.from_pretrained("madscience75/LFM3-AA1o", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use madscience75/LFM3-AA1o with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf madscience75/LFM3-AA1o:BF16 # Run inference directly in the terminal: llama cli -hf madscience75/LFM3-AA1o:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf madscience75/LFM3-AA1o:BF16 # Run inference directly in the terminal: llama cli -hf madscience75/LFM3-AA1o:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf madscience75/LFM3-AA1o:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf madscience75/LFM3-AA1o:BF16
Use Docker
docker model run hf.co/madscience75/LFM3-AA1o:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use madscience75/LFM3-AA1o with Ollama:
ollama run hf.co/madscience75/LFM3-AA1o:BF16
- Unsloth Desktop
- Pi
How to use madscience75/LFM3-AA1o with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf madscience75/LFM3-AA1o:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "madscience75/LFM3-AA1o:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use madscience75/LFM3-AA1o with Docker Model Runner:
docker model run hf.co/madscience75/LFM3-AA1o:BF16
- Lemonade
How to use madscience75/LFM3-AA1o with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull madscience75/LFM3-AA1o:BF16
Run and chat with the model
lemonade run user.LFM3-AA1o-BF16
List all available models
lemonade list
- Hermes Agent
How to use madscience75/LFM3-AA1o with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf madscience75/LFM3-AA1o:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default madscience75/LFM3-AA1o:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use madscience75/LFM3-AA1o with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf madscience75/LFM3-AA1o:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "madscience75/LFM3-AA1o:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
File size: 2,374 Bytes
c4bef11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | {
"audio_markers": true,
"audio_out_token": "<|audio_out|>",
"audio_token": "<|audio|>",
"audio_tokenizer_subfolder": "audio_tokenizer",
"feature_extractor": {
"encoder_stride": 8,
"feature_extractor_type": "Lfm3OmniFeatureExtractor",
"feature_size": 128,
"hop_length": 160,
"log_floor": -12.0,
"n_fft": 400,
"normalization_divisor": 4.0,
"normalization_offset": 4.0,
"padding_side": "right",
"padding_value": 0.0,
"return_attention_mask": true,
"sampling_rate": 16000,
"win_length": 400,
"auto_map": {
"AutoFeatureExtractor": "feature_extraction_lfm3_omni.Lfm3OmniFeatureExtractor"
}
},
"image_processor": {
"do_convert_rgb": true,
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "Lfm3VlImageProcessor",
"image_std": [
0.5,
0.5,
0.5
],
"merge_size": 2,
"patch_size": 16,
"resample": 3,
"rescale_factor": 0.00392156862745098,
"size": {
"longest_edge": 2097152,
"shortest_edge": 65536
},
"temporal_patch_size": 2,
"auto_map": {
"AutoImageProcessor": "image_processing_lfm3_vl.Lfm3VlImageProcessor"
}
},
"image_token": "<|image|>",
"processor_class": "Lfm3OmniProcessor",
"video_processor": {
"cap_pixels_per_frame": false,
"do_convert_rgb": true,
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"do_sample_frames": true,
"fps": 2.0,
"image_mean": [
0.5,
0.5,
0.5
],
"image_std": [
0.5,
0.5,
0.5
],
"max_frames": 384,
"max_video_tokens": 768,
"merge_size": 2,
"min_frames": 4,
"patch_size": 16,
"resample": 3,
"rescale_factor": 0.00392156862745098,
"return_metadata": false,
"size": {
"longest_edge": 25165824,
"shortest_edge": 4096
},
"temporal_patch_size": 2,
"video_processor_type": "Lfm3VlVideoProcessor",
"auto_map": {
"AutoVideoProcessor": "video_processing_lfm3_vl.Lfm3VlVideoProcessor"
}
},
"video_token": "<|video|>",
"vision_end_token": "<|vision_end|>",
"vision_markers": true,
"vision_start_token": "<|vision_start|>",
"auto_map": {
"AutoProcessor": "processing_lfm3_omni.Lfm3OmniProcessor"
}
}
|