Run the stateful trading agent with ERNIE 4.5’s advanced language capabilities using MLX-LM for local, private, and fast inference on Apple Silicon before moving to live markets.
requirements.txt
installedcurl -L https://foundry.paradigm.xyz | bash && foundryup
)config.py
and add the complete MLX-LM configuration:
USE_FORK = True
)
http://localhost:8545
(Anvil fork)USE_FORK = False
)
USE_FORK = False
), configure your BASE RPC endpoints in config.py
:
USE_FORK = True
), the agent automatically uses http://localhost:8545
and these endpoints are not needed.config.py
:
config.py
, you can adjust ERNIE-specific settings: