This README provides instructions on how to deploy the latest QWEN2.5-1.5B large language model locally using Ollama and create an interactive web interface using Gradio.
- Ollama Installation: Ensure that Ollama is installed on your local machine. You can download and install Ollama from the official website according to your operating system.
- Python Environment: You need to have Python installed on your system, along with the following Python packages:
gradiorequestsjson
You can install the required Python packages using pip:
pip install gradio requestsUse the following command to pull the QWEN2.5-1.5B model using Ollama:
ollama pull qwen2.5-1.5bBefore running the Gradio interface, make sure the Ollama server is running:
ollama serveExecute the Python script qwen-gradio-interface.py to start the Gradio interface:
python qwen-gradio-interface.pyOnce the script is running, open your web browser and go to the URL provided in the terminal output (usually http://127.0.0.1:7860 ). You should see the QWEN2.5-1.5B chat interface.
- Parameter Scale: 1.5B
- Local Run Based on Ollama: The model runs locally using Ollama.
- Support for Chinese and English: The model supports conversations in both Chinese and English.
- Suitable for Personal Computers: The lightweight model is suitable for personal computers.
- Chat Interface: You can interact with the QWEN2.5-1.5B model through a chat interface.
- Advanced Options: You can set system prompts, temperatures, top-p, and maximum token lengths through the advanced options.
- Example Questions: You can click on the example questions to quickly start conversations.
This project is provided by Alibaba Cloud. Please refer to the relevant license agreements for more information.