Spaces:
Running
Running
Updated with Ryzen AI, TGI and Benchmarking sections
Browse files15 unmodified lines161718192021222361 unmodified lines85868788899015 unmodified lines# Getting Started with Hugging Face TransformersThis section describes how to use the most common transformers on Hugging Facefor inference workloads on AMD accelerators using the AMD ROCm software ecosystem.This base knowledge can be leveraged to start fine-tuning from a base model or even start developing your own model.General Linux and ML experience is a required pre-requisite.61 unmodified linesClick on the 'Use in Transformers' button to see the exact code to import a specific model into your Python application.# Useful Links and Blogs- Check out our blog titled [Run a Chatgpt-like Chatbot on a Single GPU with ROCm](https://huggingface.co/blog/chatbot-amd-gpu)15 unmodified lines1617181920212223242526272829303161 unmodified lines9394959697989910010110210310410510610710810911015 unmodified lines# Getting Started with Hugging Face TransformersAMD’s Ryzen™ AI family of laptop processors provide users with an integrated Neural Processing Unit (NPU)which offloads the host CPU and GPU from AI processing tasks. Ryzen™ AI software consists of the Vitis ™ AIexecution provider (EP) for ONNX Runtime combined with quantization tools and a pre-optimized model zoo.All of this is made possible based on Ryzen™ AI technology built on AMD XDNA™ architecture,purpose-built to run AI workloads efficiently and locally,offering a host of benefits for the developer innovating the next groundbreaking AI app. Details on getting startedwith Hugging Face models are available on the [Optimum page](https://moon-ci-docs.huggingface.co/docs/optimum-amd/pr_29/en/ryzenai/overview)The following section describes how to use the most common transformers on Hugging Facefor inference workloads on select AMD Instinct™ accelerators and AMD Radeon™ GPUs using the AMD ROCm software ecosystem.This base knowledge can be leveraged to start fine-tuning from a base model or even start developing your own model.General Linux and ML experience is a required pre-requisite.61 unmodified linesClick on the 'Use in Transformers' button to see the exact code to import a specific model into your Python application.# Serving a model with TGIText Generation Inference (a.k.a “TGI”) provides an end-to-end solution to deploy large language models for inference at scale.TGI is already usable in production on AMD Instinct™ GPUs through the docker image `ghcr.io/huggingface/text-generation-inference:1.2-rocm`.Make sure to refer to the [documentation](https://huggingface.co/docs/text-generation-inference/supported_models#supported-hardware)concerning the support and any limitations.# BenchmarkingThe [Optimum-Benchmark](https://github.com/huggingface/optimum-benchmark) is available as a utility to easily benchmark the performance of transformers on AMD GPUs,across normal and distributed settings, with various supported optimizations and quantization schemes.# Useful Links and Blogs- Check out our blog titled [Run a Chatgpt-like Chatbot on a Single GPU with ROCm](https://huggingface.co/blog/chatbot-amd-gpu)
README.md+22-2