Optimize and deploy in production Hugging Face Transformer models in a single command line. At Lefebvre Dalloz we run in-production semantic search engines in the legal domain, in the non-marketing language it's a re-ranker, and we based ours on Transformer. In that setup, latency is key to providing a good user experience, and relevancy inference is done online for hundreds of snippets per user query. Most tutorials on Transformer deployment in production are built over Pytorch and FastAPI. Both are great tools but not very performant in inference. Then, if you spend some time, you can build something over ONNX Runtime and Triton inference server. You will usually get from 2X to 4X faster inference compared to vanilla Pytorch. It's cool! However, if you want the best in class performances on GPU, there is only a single possible combination: Nvidia TensorRT and Triton. You will usually get 5X faster inference compared to vanilla Pytorch.

Features

  • Heavily optimize transformer models for inference (CPU and GPU) -> between 5X and 10X speedup
  • Deploy models on Nvidia Triton inference servers (enterprise grade), 6X faster than FastAPI
  • Add quantization support for both CPU and GPU
  • Simple to use: optimization done in a single command line!
  • Supported model: any model that can be exported to ONNX (-> most of them)
  • Supported tasks: document classification, token classification (NER), feature extraction (aka sentence-transformers dense embeddings), text generation

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Hugging Face Transformer

Hugging Face Transformer Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Hugging Face Transformer!

Additional Project Details

Programming Language

Python

Related Categories

Python Machine Learning Software, Python LLM Inference Tool, Python Semantic Search Tool

Registered

2022-08-22