NexaAI Windows x64 Setup Guide
This guide demonstrates how to use the NexaAI SDK for various AI inference tasks on Windows x64, including:- LLM (Large Language Model): Text generation and conversation
- VLM (Vision Language Model): Multimodal understanding and generation
- Embedder: Text vectorization and similarity computation
- Reranker: Document reranking
- ASR (Automatic Speech Recognition): Speech-to-text transcription
- CV (Computer Vision): OCR/text recognition
- TTS (Text-to-Speech): Text-to-speech synthesis
- ImageGen: Image generation from text prompts
- Diarize: Speaker diarization
Prerequisites
1. Install the correct Python version
NexaAI requires Python 3.10 on Windows x64 Verify the installation:Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]Expected output must contain version
3.10.x and architecture AMD64.
Here are suggested ways to install Python 3.10:
Using Anaconda
python3.10:
2. Create and activate a virtual environment
3. Install the NexaAI SDK
4. Verify Your Environment
Run the following code to ensure you have the right environment:Authentication Setup
Before running any examples, you need to set up your NexaAI authentication token from https://sdk.nexa.ai/.Set Token in Environment
Replace"YOUR_NEXA_TOKEN_HERE" with your actual NexaAI token:
Verify the Token is Set
1. LLM (Large Language Model) Inference
Using CPU/GPU-accelerated large language models for text generation and conversation.2. VLM (Vision Language Model) Inference
Using CPU/GPU-accelerated vision language models for multimodal understanding and generation.3. Embedder Inference
Using CPU/GPU-accelerated embedding models for text vectorization and similarity computation.4. ASR (Automatic Speech Recognition) Inference
Using CPU/GPU-accelerated speech recognition models for speech-to-text transcription.5. Reranker Inference
Using CPU/GPU-accelerated reranking models for document reranking.6. Computer Vision (CV) Inference
Using CPU/GPU-accelerated computer vision tasks (e.g., OCR/text recognition) on images.Next Steps
- Explore the API Reference for comprehensive documentation
- Check out the macOS Guide for Apple Silicon optimization
- Visit the Windows ARM64 Guide for NPU acceleration
Was this page helpful?