# Tutorial for Sending a Machine Learning Inference Request (Non Dev Version) **Published by:** [ForumAI](https://paragraph.com/@forumai/) **Published on:** 2024-07-11 **URL:** https://paragraph.com/@forumai/tutorial-for-sending-a-machine-learning-inference-request-non-dev-version ## Content Not a dev? No problem! Here’s a simplified version for non-developers to help you get the ML request done and accomplish your basic tasks:PrerequisitesInstall Python:Download Python from the official website: Python DownloadsRun the installer and follow the steps to complete the installation.Install pip:Ensure pip is installed by running pip --version or pip3 --version in the terminal.If not installed, follow the pip installation guide.Obtain sFuel from SKEL testnet:Visit the sFuel Station.Connect your wallet.Claim your sFuel as gas fee to use on the Titan AI Hub chain.Step-by-Step InstructionsInstall the ForumAI SDK:Open your terminal (Command + Space, type “Terminal”).Run the following command to install the ForumAI SDK:Prepare Your Wallet:Write down the wallet address and the private key of your crypto (EVM) wallet.Ensure your wallet is funded with sFuel to cover the gas fees.Python Shell:Open the terminal and start the Python shell by typing:Import and Initialize the Model Market:Copy and paste the following code into the Python shell. Replace your_private_key_here and your_public_key_here with your actual wallet's private key and address:from ModelMarketSDK.ModelMarket import Mixtral8x7BModelMarketTestnet # Initialize the model market with your credentials model_market = Mixtral8x7BModelMarketTestnet( "your_private_key_here", "your_public_key_here" ) You should see “Initialized!” Then you are good to go to the final step.Send a Machine Learning Inference Request:Define your chat input. The default question is "What is 2+2?" for testing. You can replace "What is 2+2?" with your question:chat = [{"role": "system", "content": "You are a helpful assistant!"}, {"role": "user", "content": "What is 2+2?"}] response = model_market.generate(3000, chat) print(response) Then you should see the answer below:”>>> print(response) The answer is 4. Is there anything else you would like to know? I'm here to help!”Congrats! You have made your first successful ML request! Here’s how it should look like:Example: Step 3 to Step 5Common Issues and SolutionsCommand Not Found Errors:If you encounter command not found: pip, try using pip3 instead.Ensure Python and pip are correctly installed and added to your system's PATH.Module Not Found Errors:Ensure the ForumAI SDK is correctly installed. Run:pip3 show forumaisdk If not installed, reinstall it using:NameError: name 'Mixtral8x7BModelMarketTestnet' is not defined:Ensure there are no typos in the import statement. The correct import statement is:from ModelMarketSDK.ModelMarket import Mixtral8x7BModelMarketTestnet Gas Fee Issues:Ensure your wallet has enough sFuel.Double-check you are on the correct testnet setting.Additional ResourcesForumAI “Inception” TestnetForumAI Technical DocumentationForumAI “Inception” Testnet DocumentationTestnet Machine Learning Request GuidePip Installation GuideBy following these detailed steps, you should be able to successfully send a machine learning inference request using the ForumAI SDK.If you encounter any issues, refer to the common problems and solutions section or consult the ForumAI technical documentation for further assistance. Website l Docs l Twitter l Discord l Telegram ## Publication Information - [ForumAI](https://paragraph.com/@forumai/): Publication homepage - [All Posts](https://paragraph.com/@forumai/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@forumai): Subscribe to updates