Skip to content

quic/cloud-ai-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

844 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Cloud AI 100

| User Guide | Download SDK | Blog |


Qualcomm Cloud AI Developer Resources


Latest News πŸ”₯


About

Qualcomm Cloud AI 100 offers a unique blend of high computational performance, low latency, and low power utilization, making it well-suited for a broad range of AI applications, including computer vision, natural language processing, and Generative AI such as Large Language Models (LLMs). Specifically designed for high-performance, low-power AI processing, it is ideal for both public and private cloud environments, supporting Enterprise AI applications.

This repository provides developers with 3 key resources

  • Models - Recipes for CV, NLP, multimodal models to run on Cloud AI platforms performantly,
    For LLM, embeddings and speech models, see efficient-transformers
  • Tutorials - Tutorials cover model onboarding, performance tuning, and profiling aspects of inferencing across CV/NLP on Cloud AI platforms
  • Samples - Sample code illustrating usage of APIs - Python and C++ for inference on Cloud AI platforms

πŸš€ Quick Start

1. YOLOv8 Object Detection (Docker)

# Build Docker image
cd models/vision/detection
docker compose build

# Export YOLO model and generate Triton repo
docker compose run --rm yolo-export

# Start Triton server
docker compose up yolo-triton

# Run inference client
pip3 install numpy Pillow
python3 triton_client.py --endpoint localhost:8000

# Check results in output.jpg

See YOLO Detection for more model options.

2. LLM with vLLM Container

docker run --rm -it --network host \
   --device /dev/accel/ \
   --shm-size=2gb \
   --mount type=bind,source=$HOME/.cache,target=/cache \
   -e HF_HOME=/cache/huggingface \
   -e QEFF_HOME=/cache/qeff_models \
   ghcr.io/quic/cloud_ai_inference_vllm:1.21.4.0 \
   --host 127.0.0.1 \
   --port 8080 \
   --model hugging-quants/Meta-Llama-3.1-8B-Instruct-AWQ-INT4 \
   --max-model-len 8192 \
   --max-num-seq 1 \
   --max-seq-len-to-capture 128 \
   --quantization mxfp6 \
   --kv-cache-dtype mxint8

See vLLM for QAic User Guide for vLLM usage.

After starting the server, test with curl:

curl http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hugging-quants/Meta-Llama-3.1-8B-Instruct-AWQ-INT4",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello, how are you?"}
    ]
  }'

πŸ“š Supported Models

πŸ’Ύ Pre-compiled Model Catalog

For pre-compiled model binaries refer to the Model Catalog (independent partner site)

πŸ’¬ Generative AI - Large Language Models (LLM), Vision Language Models (VLM), Embeddings, Speech, Image Generation, Video Generation

  • 80+ models including all varieties of bert models, sentence-transformer embedding models, etc.
  • ViT (vit_b_16, vit_b_32, vit-base-patch16-224)
  • YOLO (yolov5s, yolov5m, yolov5l, yolov5x, yolov7-e6e, yolov8m)
  • Mask R-CNN (Detectron2-based instance segmentation with bounding boxes and masks)
  • ResNet (resnet18, resnet34, resnet50, resnet101, resnet152)
  • ResNeXt (resnext101_32x8d, resnext101_64x4d, resnext50_32x4d)
  • Wide ResNet (wide_resnet101_2, wide_resnet50_2)
  • DenseNet (densenet121, densenet161, densenet169, densenet201)
  • MNASNet (mnasnet0_5, mnasnet0_75, mnasnet1_0, mnasnet1_3)
  • MobileNet (mobilenet_v2, mobilenet_v3_large, mobilenet_v3_small)
  • EfficientNet (efficientnet_v2_l, efficientnet_v2_m, efficientnet_v2_s, efficientnet_b0, efficientnet_b7, etc.)
  • ShuffleNet (shufflenet_v2_x0_5, shufflenet_v2_x1_0, shufflenet_v2_x1_5, shufflenet_v2_x2_0)
  • SqueezeNet (squeezenet1_0, squeezenet1_1)

Support

Reach out on the πŸ“’cloud-ai Discord channel or use πŸ’¬ GitHub Issues to request for model support, raise questions or to provide feedback.

Disclaimer

While this repository may provide documentation on how to run models on Qualcomm Cloud AI platforms, this repository does NOT contain any of these models. All models referenced in this documentation are independently provided by third parties at unaffiliated websites. Please be sure to review any third-party license terms at these websites; no license to any model is provided in this repository. This repository of documentation provides no warranty or assurances for any model so please also be sure to review all model cards, model descriptions, model limitations / intended uses, training data, biases, risks, and any other warnings given by the third party model providers.

License

The documentation made available in this repository is licensed under the BSD 3-clause-Clear β€œNew” or β€œRevised” License. Check out the LICENSE for more details.

About

Qualcomm Cloud AI SDK (Platform and Apps) enable high performance deep learning inference on Qualcomm Cloud AI platforms delivering high throughput and low latency across Computer Vision, Object Detection, Natural Language Processing and Generative AI models.

Topics

Resources

License

Code of conduct

Contributing

Stars

82 stars

Watchers

7 watching

Forks

Contributors