Financial Stock Intelligence#
Overview#

This Solution Blueprint provides a financial analysis workflow through a web interface. It combines market data, technical indicators, news, and Large Language Model (LLM) analysis to produce stock insights and answer follow-up questions about the latest analysis.
Financial Stock Intelligence was previously published under the chart name aimsb-fsi.
AMD Solution Blueprints are packaged as Helm charts for deployment on a Kubernetes cluster. For development or further exploration, the source code is public and available in the Solution Blueprints GitHub repository.
Architecture#
The blueprint provides a Gradio web application with a financial analysis pipeline and an AMD Inference Microservice (AIM) LLM. By default, the GPT-OSS 120B AIM is deployed for analysis and commentary.
Component |
Role |
|---|---|
Gradio UI |
Web interface for entering symbols, date ranges, and reviewing results |
Analysis pipeline |
Market data retrieval, technical indicators, and visualization |
AIM LLM |
AI-generated stock insights (default: GPT-OSS 120B on Instinct, Qwen3-VL 8B Instruct on Radeon, Llama 3.1 8B Instruct on EPYC) |
Key Features#
Real-time stock data: Live prices and history via Yahoo Finance
Technical analysis: Simple Moving Average (SMA), Relative Strength Index (RSI), momentum, and price versus SMA comparisons
AI-powered analysis: Uses an AIM for intelligent stock insights
Interactive web interface: Gradio UI for easy interaction
Historical visualization: Interactive Plotly charts with trend analysis and model recommendations
News integration: Incorporates relevant financial news for context
Financial analysis chat: Streaming follow-up answers grounded in the latest completed analysis
Getting Started#
This is a quick start guide on how to deploy the blueprint. For advanced options, such as reusing an existing AIM, providing a Hugging Face token, or overriding storage classes, see Deploying Solution Blueprints with Helm or explore the advanced deployment guide.
Prerequisites#
System Requirements#
This blueprint can be deployed on AMD Instinct (default), AMD EPYC, and AMD Radeon. The blueprint requires the following cluster resources by default, depending on the hardware being used:
Resource |
Instinct |
Radeon |
EPYC |
|---|---|---|---|
GPUs |
1 |
1 |
— |
CPUs |
5 CPU cores |
5 CPU cores |
189 CPU cores (default) |
RAM |
68 GiB |
36 GiB |
132 GiB |
To deploy to the Kubernetes cluster, ensure the following prerequisites are met:
kubectl: Installed and configured to communicate with the cluster
Helm 3.16 – 4.2.0: Installed on your local machine
A Kubernetes cluster with a usable StorageClass. The default is
mlstorage; see Using ephemeralStorage or different storageClasses for override instructions.
Deployment#
Solution Blueprints are packaged as OCI-compliant Helm charts in the Docker Hub registry and can be deployed to a Kubernetes cluster with a single command. Define the name (deployment name) and the namespace (Kubernetes namespace), then pipe the output of helm template to kubectl apply -f -.
Note: You can create a namespace using kubectl create namespace <my-namespace>.
name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-financial-stock-intelligence \
| kubectl apply -f - -n $namespace
EPYC runs the model on CPU (gpus=0, bf16, AIM_ALLOW_UNOPTIMIZED=true), sized via llm.cpus/llm.memory. The default EPYC AIM is a gated image, so provide a Hugging Face token through a Secret.
name="my-deployment"
namespace="my-namespace"
kubectl create namespace $namespace
kubectl create secret generic hf-token --from-literal=hf-token=<YOUR_HF_TOKEN> -n $namespace
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-financial-stock-intelligence \
--set global.platform=epyc \
--set llm.cpus=188 \
--set llm.memory=128 \
--set llm.env_vars.HF_TOKEN.name=hf-token \
--set llm.env_vars.HF_TOKEN.key=hf-token \
| kubectl apply -f - -n $namespace
Specify the CPU and memory resources here depending on your chosen LLM, hardware configuration, and performance needs.
Performance note: On multi-socket EPYC nodes, configure the kubelet for NUMA alignment (CPU Manager
static, Topology Managersingle-numa-node, Memory ManagerStatic); otherwise the LLM’s CPUs and memory can land on different NUMA nodes and vLLM runs effectively single-threaded.
name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-financial-stock-intelligence \
--set global.platform=radeon \
| kubectl apply -f - -n $namespace
Verify Deployment#
To check the status of the deployment, run:
kubectl get pods -n $namespace
Wait until all pods report Running and Ready.
Connect to UI#
To connect to the UI, port-forward to 8081. The UI will then be available at http://localhost:8081 in your browser.
kubectl port-forward services/aimsb-financial-stock-intelligence-${name} 8081:80 -n $namespace
Once connected, use the application as follows:
Enter one or more stock symbols (comma-separated)
Set the start and end dates, and optionally choose an investor profile
Click Analyze stocks to fetch data, compute indicators, and generate AI commentary
Review AI Technical Analysis and Stock Charts & Price Analysis (use Choose symbol if you analyzed more than one)
Use Chat about the financials to ask follow-up questions about the active analysis context
Clean Up#
When you are finished, remove the deployed resources using the same deployment command, with kubectl delete instead of kubectl apply. For example, for Instinct use the following command:
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-financial-stock-intelligence \
| kubectl delete -f - -n $namespace
Disclaimer#
This tool is for educational and research purposes only. It does not constitute financial advice.
Third-Party Components#
This Solution Blueprint uses multiple third-party components. To see the full set of software and Python dependencies, explore the repository source and dependency files. The table below highlights some of the main components. For further license information, refer to each component’s official documentation.
Component |
License |
|---|---|
Gradio |
Apache 2.0 |
LangChain |
MIT |
Plotly |
MIT |
yfinance |
Apache 2.0 |
Terms of Use#
AMD Solution Blueprints are released under the MIT License, which governs the parts of the software and materials created by AMD. Third-party Software and Materials used within the Solution Blueprints are governed by their respective licenses.