- SmartStack: AI, Self-Hosting & Smart Finance/
- Posts/
- Qwen Dev Says Not to Wait for 35B-A3B: A Practical Guide/
Qwen Dev Says Not to Wait for 35B-A3B: A Practical Guide
Table of Contents
Introduction #
Qwen, the seasoned writer and builder, recently chimed in on r/LocalLLaMA, advising against waiting for the 35B-A3B model. He’s right. For most users, the 7B-A3B model is a better fit. It’s more performant, costs less, and is easier to manage. Let’s dive in.
Why Not 35B-A3B? #
Performance #
Qwen mentioned in the thread that the 35B-A3B model is resource-intensive. It requires a lot of RAM and computational power, which can be a bottleneck. The 7B-A3B model, on the other hand, is more efficient. It can run smoothly on a machine with 16GB of RAM, which is more accessible and cost-effective.
Cost #
The 35B-A3B model is expensive. Qwen noted that it costs around $100 per month for hosting, which is a significant expense. The 7B-A3B model, however, can be hosted for as little as $30 per month, making it a much more budget-friendly option.
Setup #
Setting up the 35B-A3B model is a complex process. Qwen mentioned that it requires advanced knowledge of Docker and Kubernetes. The 7B-A3B model, however, can be set up with simpler tools like Podman and Docker Compose, making it more accessible to a wider audience.
How to Deploy 7B-A3B #
Step 1: Choose Your Hosting #
For hosting, Qwen recommended Hetzner over DigitalOcean. Hetzner offers better value for money, with a 16GB RAM server costing around $20 per month. This is a significant cost savings compared to DigitalOcean.
Step 2: Install Docker and Podman #
First, install Docker and Podman on your server. You can do this with the following commands:
sudo apt update
sudo apt install docker.io podman
Step 3: Pull the 7B-A3B Model #
Next, pull the 7B-A3B model from the Hugging Face Hub. You can do this with the following command:
huggingface-cli download --model 7b-a3b --revision main
Step 4: Create a Docker Compose File #
Create a docker-compose.yml file with the following content:
version: '3'
services:
llm:
image: 7b-a3b:latest
container_name: 7b-a3b
ports:
- "8080:8080"
environment:
- MODEL_PATH=/models/7b-a3b
volumes:
- ./models:/models
Step 5: Start the Model #
Start the model with the following command:
docker-compose up -d
FAQ #
Q: Can I use 7B-A3B for large-scale projects? #
A: The 7B-A3B model is not ideal for large-scale projects due to its limitations in handling large datasets and complex tasks. For such projects, consider using a larger model like 13B or 35B.
Q: Is 7B-A3B suitable for all use cases? #
A: The 7B-A3B model is suitable for most use cases, especially those that require a balance between performance and cost. However, for more demanding tasks, a larger model may be necessary.
Q: Can I run 7B-A3B on my local machine? #
A: Yes, you can run 7B-A3B on your local machine, but it requires a machine with at least 16GB of RAM. If you don’t have such a machine, consider using a cloud provider like Hetzner.
Conclusion #
Qwen’s advice to avoid the 35B-A3B model is sound. The 7B-A3B model is a better fit for most users, offering better performance, lower costs, and easier setup. Follow the steps above to deploy your own 7B-A3B model and start building your projects today.