This is the
8-bit quantized MLX conversion of
AITRADER/Amsi-fin-o1, a specialized financial vision-language model. The 8-bit quantization reduces memory usage by ~50% while maintaining excellent performance for financial analysis tasks.
1# Install mlx-vlm
2pip install -U mlx-vlm
1# Basic image analysis
2python -m mlx_vlm.generate \
3 --model AITRADER/Amsi-fin-o1-MLX-8bit \
4 --max-tokens 512 \
5 --temperature 0.7 \
6 --prompt "Analyze this financial chart and explain the trends." \
7 --image path/to/financial_chart.png
1from mlx_vlm import load, generate
2from mlx_vlm.prompt_utils import apply_chat_template
3from mlx_vlm.utils import load_config
4
5# Load model
6model_path = "AITRADER/Amsi-fin-o1-MLX-8bit"
7model, processor = load(model_path)
8config = load_config(model_path)
9
10# Prepare prompt
11prompt = apply_chat_template(
12 processor,
13 config,
14 "Analyze the financial performance shown in this quarterly report.",
15 num_images=1
16)
17
18# Generate response
19output = generate(
20 model,
21 processor,
22 prompt,
23 image="path/to/report.png",
24 max_tokens=512,
25 temperature=0.7
26)
27print(output)
1from mlx_vlm import load, stream_generate
2from mlx_vlm.prompt_utils import apply_chat_template
3from mlx_vlm.utils import load_config
4
5model_path = "AITRADER/Amsi-fin-o1-MLX-8bit"
6model, processor = load(model_path)
7config = load_config(model_path)
8
9prompt = apply_chat_template(
10 processor,
11 config,
12 "What are the key insights from this financial statement?",
13 num_images=1
14)
15
16# Stream the response
17for token in stream_generate(
18 model,
19 processor,
20 prompt,
21 image="financial_statement.png",
22 max_tokens=512
23):
24 print(token, end="", flush=True)
1prompt = """Analyze this stock chart and provide:
21. The overall trend (bullish/bearish/neutral)
32. Key support and resistance levels
43. Volume analysis
54. Trading recommendations"""
1prompt = """Review this income statement and:
21. Calculate key financial ratios
32. Compare YoY performance
43. Identify areas of concern
54. Highlight positive indicators"""
1prompt = """Extract all numerical data from this financial document
2and organize it in a structured format."""
1prompt = """Based on this quarterly report:
21. Summarize the company's financial health
32. Calculate growth metrics
43. Provide an investment thesis"""
1@misc{amsi-fin-o1-mlx-8bit,
2 title={Amsi-fin-o1 MLX 8-bit: Quantized Financial Vision-Language Model for Apple Silicon},
3 author={AITRADER},
4 year={2025},
5 url={https://huggingface.co/AITRADER/Amsi-fin-o1-MLX-8bit}
6}
This model is released under the
Apache 2.0 License.