PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Large Language Models Python Packages

Python packages with the GitHub topic large-language-models. Sorted by relevance, with stars and monthly downloads.
ray-project
ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.

60.7M 43K 8K
mlc-ai
xgrammar

Fast, Flexible and Portable Structured Generation

6.4M 2K 166
onnx
onnx-ir

Efficient in-memory representation for ONNX, in Python

3.6M 45 21
redis
redisvl

Redis Vector Library (RedisVL) -- the AI-native Python client for Redis.

2.6M 411 92
deepset-ai
haystack-ai

Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.

1M 26K 3K
hiyouga
llamafactory

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

863K 73K 9K
urchade
gliner

Generalist and Lightweight Model for Named Entity Recognition (Extract any entity types from texts)

744K 3K 288
vndee
llm-sandbox

Lightweight and portable LLM sandbox runtime (code interpreter) Python library.

648K 1K 103
fla-org
fla-core

🚀 Efficient implementations for emerging model architectures

587K 5K 570
fla-org
flash-linear-attention

🚀 Efficient implementations for emerging model architectures

499K 5K 570
amazon-science
chronos-forecasting

Chronos: Pretrained Models for Time Series Forecasting

431K 6K 662
google
langextract

A Python library for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization.

427K 37K 3K
AgentOps-AI
tokencost

Easy token price estimates for 400+ LLMs. TokenOps.

390K 2K 107
HKUDS
lightrag-hku

[EMNLP2025] "LightRAG: Simple and Fast Retrieval-Augmented Generation"

262K 37K 5K
activeloopai
deeplake

Deeplake is AI Data Runtime for Agents. It provides serverless postgres with a multimodal datalake, enabling scalable retrieval and training.

240K 9K 720
open-thought
reasoning-gym

[NeurIPS 2025 Spotlight] Reasoning Environments for Reinforcement Learning with Verifiable Rewards

236K 1K 122
protectai
llm-guard

The Security Toolkit for LLM Interactions

234K 3K 414
NVIDIA
megatron-core

Ongoing research training transformer models at scale

188K 17K 4K
agentscope-ai
agentscope

Build and run agents you can see, understand and trust.

181K 27K 3K
langflow-ai
langflow-base

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

109K 151K 9K
langflow-ai
langflow

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

99K 151K 9K
NVIDIA
megatron-fsdp

Ongoing research training transformer models at scale

84K 17K 4K
zou-group
textgrad

TextGrad: Automatic ''Differentiation'' via Text -- using large language models to backpropagate textual gradients. Published in Nature.

82K 4K 296
ethz-spylab
agentdojo

A Dynamic Environment to Evaluate Attacks and Defenses for LLM Agents.

76K 646 163
    • Data from PyPI, GitHub, ClickHouse, and BigQuery