ইনফারেন্স, ডিপ্লয়মেন্ট ও রানটাইম

Hugging Face Transformers

huggingface/transformers

A model-definition framework for state-of-the-art machine learning models across text, vision, audio, and multimodal domains, supporting both inference and training.

★ 163.3Kতারকা
⑂ 34.1Kফর্ক
2343খোলা সমস্যাগুলো
Pythonভাষা
Apache-2.0লাইসেন্স
Q98সম্পাদকীয় স্কোর

প্রকল্পের স্ক্রিনশট

Hugging Face Transformers-এর স্ক্রিনশট Hugging Face Transformers-এর স্ক্রিনশট

ওভারভিউ

Transformers serves as a centralized model-definition framework that ensures compatibility across the broader machine learning ecosystem. By standardizing model definitions, it allows seamless integration with various training frameworks like Axolotl, Unsloth, DeepSpeed, and PyTorch-Lightning, as well as inference engines such as vLLM, SGLang, and TGI. The library provides a unified API with minimal abstractions, making it accessible for researchers and developers to leverage over 1 million pretrained model checkpoints available on the Hugging Face Hub.

প্রধান বৈশিষ্ট্যসমূহ

  • Unified API for pretrained models across text, vision, audio, and multimodal tasks
  • Compatibility with major training frameworks and inference engines
  • Access to over 1 million model checkpoints on the Hugging Face Hub
  • High-level Pipeline API for easy inference across modalities
  • Support for model customization and exposure of model internals

প্রয়োজনীয়তা, ইনস্টলেশন ও দ্রুত শুরু

Create and activate a virtual environment using venv or uv. Install Transformers with PyTorch support via pip using 'pip install "transformers[torch]"' or via uv using 'uv pip install "transformers[torch]"'. For the latest changes, install from source by cloning the repository and running 'pip install ".[torch]"'.

ব্যবহার

Instantiate a pipeline by specifying a task and model, then pass input data to get results. For example, use 'pipeline(task="text-generation", model="Qwen/Qwen2.5-1.5B")' for text generation. For chat-based interactions, construct a chat history and pass it to the pipeline.

মডেলের সামঞ্জস্যতা ও ব্যবহারের ক্ষেত্র

Supports a wide range of models including Qwen, Llama, Whisper, DINOv2, BLIP, Mixtral, BART, T5, Gemma, and many others across various modalities.

লাইসেন্স ও ঝুঁকি-সংক্রান্ত নোট

Licensed under the Apache License, Version 2.0.

Editorial verification 2026-08-09: repository URL, owner, description, license and repository statistics were reviewed. License metadata: Apache-2.0. README was fetched for the channel draft; re-check repository dependencies, releases and model terms before production use.

রিলিজ ও রক্ষণাবেক্ষণ

Not stated in the repository metadata.

vllm

vllm-project/vllm

★ 89.5KPython

sglang

sgl-project/sglang

★ 32.2KPython

OpenVINO

openvinotoolkit/openvino

★ 10.6KC++

GPUStack

gpustack/gpustack

★ 5.4KPython

FastDeploy

PaddlePaddle/FastDeploy

★ 3.7KPython