Skip to the content.

Awesome Machine Learning 2027: Frameworks, Libraries and Tools by Language and Task

A curated, status-checked list of machine learning frameworks, libraries and tools for Python, R, Julia, JavaScript, Java, C++, Rust, Go, Swift and .NET, organized by task, with a “best pick” for each category.

Last reviewed: December 2026

This awesome machine learning list helps you choose the right machine learning framework or library for your language and task in 2027. Every GitHub project below was checked for activity in December 2026: archived or long-inactive projects are moved to a legacy section instead of being silently recommended. Where a category has a clear default, you will find a best pick with the reason.

Table of Contents


How This List Is Maintained

Quick Decision Guide

You want to… Best pick Why
Classical ML on tabular data scikit-learn The reference API; everything else integrates with it
Win on tabular data XGBoost, LightGBM or CatBoost Gradient boosting still dominates most tabular benchmarks
Deep learning research or production PyTorch Default framework for most papers and open models
Large-scale numerical research on accelerators JAX Composable transforms (jit, grad, vmap), strong on TPUs
Use pretrained transformer models Hugging Face Transformers Largest catalog of open models with one API
Serve an LLM at high throughput vLLM or SGLang Paged attention, continuous batching, wide model support
Run an LLM on a laptop llama.cpp or Ollama CPU/GPU/Apple Silicon, quantized GGUF models
Train on Apple Silicon MLX Built for unified memory on Apple chips
Fine-tune an LLM cheaply Unsloth or TRL + PEFT LoRA/QLoRA with low memory
Track experiments MLflow Open source, self-hostable, broad integrations
Fast dataframes Polars Multi-threaded, lazy queries, Arrow-based
Object detection quickly Ultralytics Simple API for YOLO models (note AGPL license)
ML in the browser Transformers.js or ONNX Runtime Web Runs models client-side with WebGPU/WASM

Python

Python remains the default language for machine learning. Most libraries below support Python 3.10+.

Core Scientific Stack

Library What it does Notes
NumPy N-dimensional arrays Foundation of the ecosystem
SciPy Optimization, stats, signal processing, sparse matrices  
pandas DataFrames Ubiquitous; huge ecosystem
Polars Fast DataFrames (Rust core) Best pick for new data-prep code where speed matters
Dask Parallel pandas/NumPy across cores or clusters  
CuPy NumPy-compatible arrays on GPUs  
SymPy Symbolic math Handy for deriving gradients by hand
Matplotlib Plotting  
seaborn Statistical plots on Matplotlib  
Plotly Interactive charts  
statsmodels Statistical models and tests Regression with p-values, time-series models

Classical Machine Learning

Library What it does Notes
scikit-learn Classification, regression, clustering, pipelines, model selection Best pick: the standard API
imbalanced-learn Resampling for imbalanced datasets scikit-learn compatible
mlxtend Extensions: stacking, feature selection, association rules  
cuML GPU-accelerated scikit-learn-style algorithms Part of NVIDIA RAPIDS
skorch scikit-learn wrapper for PyTorch models Use PyTorch nets in sklearn pipelines
H2O-3 Distributed ML platform with AutoML Java engine with Python/R clients
Apache Spark MLlib ML on Spark clusters For data already in Spark

Gradient Boosting

Library Strength Notes
XGBoost Mature, fast, GPU support, many languages Safe default
LightGBM Very fast on large datasets, leaf-wise growth Now under the lightgbm-org GitHub org
CatBoost Excellent with categorical features, good defaults Best pick when you have many categorical columns

Tip: for most tabular problems, try all three with default settings plus early stopping before investing in deep learning.

Deep Learning Frameworks

Framework Strengths Best for
PyTorch Eager by default, torch.compile, largest ecosystem Best pick for most people
JAX Functional transforms, XLA compilation, TPU-native Research at scale, scientific ML
Flax Neural network library for JAX JAX users
Equinox PyTorch-like modules as JAX pytrees JAX users who prefer simple classes
Optax Optimizers for JAX  
Keras 3 High-level API that runs on JAX, PyTorch or TensorFlow backends Beginners, quick prototypes, multi-backend code
TensorFlow Mature production stack, TF Lite heritage Existing TF codebases
MLX Array framework for Apple Silicon with NumPy-like API Mac users training or fine-tuning locally
tinygrad Minimal framework with its own compiler Learning, hacking on new accelerators

Training Utilities

Library What it does
PyTorch Lightning Organizes PyTorch training loops; multi-GPU with little code
Hugging Face Accelerate Run the same PyTorch loop on CPU, GPU, multi-GPU or TPU
fastai High-level layered API on PyTorch with strong defaults
timm Hundreds of image models and training scripts
Hugging Face Datasets Load and stream datasets efficiently
Hugging Face Tokenizers Fast tokenizers (Rust core)

Computer Vision

Library What it does Notes
OpenCV Classical image processing and vision The workhorse
torchvision Datasets, transforms and models for PyTorch  
Ultralytics YOLO detection, segmentation, pose, tracking AGPL-3.0; commercial license available
Detectron2 Detection and segmentation research platform Still usable, slower development
SAM 2 Promptable segmentation for images and video Successor to Segment Anything
OpenCLIP Open CLIP models for image-text embeddings  
Kornia Differentiable computer vision ops in PyTorch  

Natural Language Processing and LLMs

Library What it does Notes
Transformers Pretrained models for text, vision, audio, multimodal Best pick for using open models
Sentence Transformers Text embeddings and rerankers Now maintained under Hugging Face
spaCy Industrial NLP pipelines: tokenization, NER, parsing Fast, production-oriented
NLTK Classic NLP toolkit Teaching and quick text processing
Gensim Topic modelling, word2vec  
Stanza Multilingual NLP pipelines  
Flair Sequence labelling and embeddings  

LLM Fine-Tuning

Library What it does Notes
TRL SFT, DPO, GRPO and other post-training methods Best pick for flexibility
PEFT LoRA and other parameter-efficient methods Pairs with TRL
Unsloth Faster, lower-memory fine-tuning Best pick on a single GPU
Axolotl Config-driven fine-tuning Good for repeatable recipes
torchtune PyTorch-native fine-tuning recipes  
LitGPT Pretrain, fine-tune and serve many LLMs Readable implementations
bitsandbytes 8-bit and 4-bit quantization (QLoRA)  

LLM Inference and Serving

Tool What it does Notes
vLLM High-throughput serving, OpenAI-compatible server Best pick for GPU servers
SGLang Fast serving with structured generation Strong alternative to vLLM
llama.cpp C/C++ inference for GGUF models on CPU/GPU/Apple Best pick for local and edge
Ollama Easy local model runner with an API Easiest local setup
TensorRT-LLM NVIDIA-optimized LLM inference Maximum speed on NVIDIA GPUs
ONNX Runtime Cross-platform inference for ONNX models CPU, GPU, mobile, web
ExecuTorch On-device PyTorch inference Mobile and embedded
Open WebUI Self-hosted chat UI for local or remote models  
LocalAI OpenAI-compatible local server for many model types  

Note: Hugging Face’s Text Generation Inference (TGI) repository is archived; see Legacy.

LLM Applications, RAG and Agents

Library What it does Notes
LangChain Components for LLM apps Large integration catalog
LangGraph Stateful, graph-based agent workflows  
LlamaIndex Data connectors and indexing for RAG Strong for document-heavy apps
DSPy Program and optimize LM pipelines instead of hand-writing prompts  
Pydantic AI Type-safe agent framework  
OpenAI Agents SDK Lightweight multi-agent framework Works with other providers too
smolagents Minimal code-writing agents  
CrewAI Role-based multi-agent orchestration  

Best pick: start without a framework (direct API calls plus your own retrieval), then adopt one when you feel real pain. Microsoft’s AutoGen repository is archived; see Legacy.

Tool Type Notes
FAISS Library Best pick for in-process similarity search
Chroma Embedded/server DB Easy for prototypes
Qdrant Server (Rust) Filtering, production-ready
Milvus Distributed server Very large collections
LanceDB Embedded, columnar Multimodal data on disk
pgvector Postgres extension Keep vectors next to your relational data

Speech and Audio

Library What it does
Whisper Open speech recognition and translation models
faster-whisper Faster Whisper inference with CTranslate2
torchaudio Audio I/O and transforms for PyTorch
librosa Audio and music analysis

Generative Images and Video

Tool What it does
Diffusers Diffusion pipelines for image, video and audio generation
ComfyUI Node-based UI and engine for diffusion workflows
Stable Diffusion WebUI Popular web UI for image generation

Time Series and Forecasting

Library What it does Notes
StatsForecast Fast statistical models (ARIMA, ETS, Theta) Best pick for strong baselines
Darts Unified API for classical and deep forecasting  
sktime scikit-learn-style time-series toolkit Classification and forecasting
Prophet Additive forecasting with seasonality and holidays Easy, but benchmark against baselines

Graph Machine Learning

Library Notes
PyTorch Geometric Best pick: the most widely used GNN library
DGL Framework-agnostic GNNs
NetworkX Graph algorithms (not deep learning)

Reinforcement Learning and Robotics

Library What it does Notes
Gymnasium Standard RL environment API Maintained successor of OpenAI Gym
Stable-Baselines3 Reliable implementations of PPO, SAC, DQN and more Best pick to apply RL
CleanRL Single-file RL implementations Best pick to learn RL
MuJoCo Physics simulator for robotics  
LeRobot Models, datasets and tools for real-world robotics  
Unity ML-Agents RL in Unity game environments  

Probabilistic Programming and Bayesian ML

Library Notes
PyMC Best pick for Bayesian modelling in Python
NumPyro Fast NUTS sampling on JAX
Pyro Deep probabilistic programming on PyTorch
Stan Mature probabilistic language with Python/R interfaces
ArviZ Diagnostics and plots for Bayesian models

AutoML and Hyperparameter Optimization

Library Notes
Optuna Best pick for hyperparameter search
AutoGluon Strong AutoML for tabular, text, image and time series
Ray Tune Distributed tuning (part of Ray)
Hyperopt Classic Bayesian optimization
KerasTuner Tuning for Keras models
PyCaret Low-code ML workflows
Featuretools Automated feature engineering

Explainability, Fairness and Data Quality

Library What it does
SHAP Shapley-value explanations for any model
Captum Attribution methods for PyTorch
InterpretML Glass-box models (EBMs) and explanations
Fairlearn Fairness assessment and mitigation
AIF360 Bias metrics and mitigation algorithms
cleanlab Find label errors and data issues
Great Expectations Data validation tests
Deepchecks Tests for data and model integrity
Evidently Data drift and model monitoring reports

Evaluation

Tool Focus
lm-evaluation-harness Standard benchmarks for language models
Ragas Metrics for RAG pipelines
DeepEval Unit-test-style LLM evaluations

MLOps: Tracking, Versioning, Pipelines

Tool What it does Notes
MLflow Tracking, model registry, LLM tracing Best pick open-source tracker
Weights & Biases Hosted experiment tracking Client is open source; service is paid with a free tier
DVC Data and model versioning with Git Now under the treeverse org
Feast Feature store  
Kubeflow ML platform on Kubernetes  
Ray Distributed compute for data, training, tuning and serving  

Model Serving and Deployment

Tool Notes
BentoML Package and serve models as APIs
NVIDIA Triton Inference Server Multi-framework, high-performance serving
TensorRT NVIDIA inference optimizer
ONNX Runtime Portable inference runtime
Core ML Tools Convert models for Apple devices

Distributed Training and Scale

Tool Notes
DeepSpeed ZeRO optimizer sharding, large-model training
Megatron-LM Tensor/pipeline parallel training at scale
FlashAttention Fast, memory-efficient exact attention kernels
xFormers Composable transformer building blocks and kernels

PyTorch’s built-in FSDP is the usual starting point before reaching for these.

GPU Kernels and Performance

Tool Notes
Triton Python-like language for writing GPU kernels
CUDA Toolkit docs The reference for NVIDIA GPU programming

Notebooks and Demos

Tool Notes
JupyterLab The standard notebook environment
marimo Reactive notebooks stored as plain Python files
Gradio Build ML demos with a few lines
Streamlit Data apps in Python

R

Library What it does
tidymodels Best pick: modern, consistent modelling framework
mlr3 Object-oriented ML framework with benchmarking
caret Classic unified interface (superseded by tidymodels for new work)
xgboost (R package) Gradient boosting
torch for R PyTorch’s backend (LibTorch) with an R API
Stan via cmdstanr Bayesian modelling

Julia

Library What it does
Flux.jl Deep learning in pure Julia
Lux.jl Explicit-parameter neural networks, good for scientific ML
MLJ.jl Unified interface to many ML models

JavaScript and TypeScript

Library What it does Notes
Transformers.js Run Hugging Face models in the browser and Node Best pick for client-side models
ONNX Runtime Web Run ONNX models in the browser WebGPU and WASM backends
TensorFlow.js Train and run models in JavaScript Slower development pace in 2026
ml5.js Friendly ML for creative coding (p5.js) Great for beginners and artists

Java and the JVM

Library What it does
Deep Java Library (DJL) Engine-agnostic deep learning for Java
Smile Comprehensive ML library for Java/Scala
Tribuo ML library with provenance tracking
Deeplearning4j Deep learning suite for the JVM
Spark MLlib Distributed ML in Scala/Java

C and C++

Library What it does
LibTorch (PyTorch C++ API) PyTorch from C++
ggml Tensor library behind llama.cpp and whisper.cpp
whisper.cpp Whisper speech recognition in C/C++
mlpack Fast header-only C++ ML library
dlib ML and computer vision toolkit
OpenCV Computer vision

Rust

Library What it does
Candle Minimalist ML framework from Hugging Face, good for inference
Burn Full deep learning framework with multiple backends
linfa scikit-learn-style classical ML
tch-rs Rust bindings to LibTorch
Polars DataFrames (native Rust API)

Go

Library What it does
GoMLX ML framework for Go built on XLA
Ollama Written in Go; use its API from Go apps

Gorgonia has had little activity since 2024; prefer GoMLX for new projects or call Python/ONNX services.

Swift and Apple Platforms

Library What it does
MLX Swift MLX for Swift apps
Core ML Tools Convert PyTorch/TF models to Core ML
Core ML docs On-device inference on Apple platforms

C# and .NET

Library What it does
ML.NET Microsoft’s ML framework for .NET
TorchSharp .NET bindings to LibTorch
ONNX Runtime C# API for inference

Educational Implementations

Small, readable code bases that teach how things work inside:

Project What it teaches
micrograd Autograd engine in about 100 lines
nanoGPT Minimal GPT training
nanochat End-to-end small ChatGPT-style pipeline (tokenizer, pretraining, fine-tuning, chat UI)
llm.c GPT-2 training in raw C/CUDA
LLMs-from-scratch Code for a book on building an LLM in PyTorch
CleanRL Single-file RL algorithms
tinygrad A full framework small enough to read

Legacy and Archived Projects

These still appear in older tutorials. Status as of December 2026:

Project Status Use instead
Theano Discontinued PyTorch or JAX
Caffe Inactive PyTorch
Caffe2 Archived (merged into PyTorch) PyTorch
Apache MXNet Archived (retired to the Apache Attic) PyTorch
Microsoft CNTK Archived PyTorch
OpenAI Gym Archived Gymnasium
AllenNLP Archived Transformers
fairseq Archived Transformers
torchtext Archived Hugging Face Datasets/Tokenizers
scikit-optimize Archived Optuna
Text Generation Inference Archived vLLM or SGLang
Microsoft AutoGen Archived Another agent framework from the list above
Segment Anything (v1) Superseded SAM 2
MMDetection Little activity since 2024 Detectron2, Ultralytics or Transformers detectors
Gorgonia Little activity since 2024 GoMLX
LIME Little activity since 2024 SHAP

Learning Resources

Resource Type Cost
scikit-learn User Guide Docs that double as a textbook Free
PyTorch Tutorials Official tutorials Free
Dive into Deep Learning Interactive book with code Free
An Introduction to Statistical Learning (ISLP) Textbook with Python labs Free PDF from the authors
Hugging Face Learn Courses on LLMs, agents, diffusion, RL, audio, vision Free
Google Machine Learning Crash Course Short course with exercises Free
Kaggle Learn Bite-size hands-on courses Free
Hugging Face Daily Papers Daily papers with linked models Free

For a full study plan see the companion lists best-places-to-learn-ai-ml and awesome-deep-learning-courses.

FAQ

What is the best machine learning library in 2027? For classical ML, scikit-learn; for deep learning, PyTorch; for tabular competitions, gradient boosting (XGBoost, LightGBM, CatBoost). Most real projects use all three.

Is TensorFlow dead? No, but most new research and open models target PyTorch first. Keras 3 lets you write high-level code that runs on JAX, PyTorch or TensorFlow.

PyTorch or JAX? PyTorch for most people and most jobs. JAX if you work on TPUs, need heavy function transforms, or join a team that already uses it.

What is the best library to run LLMs locally? llama.cpp (or Ollama on top of similar technology) for laptops and desktops; MLX on Apple Silicon; vLLM or SGLang on GPU servers.

Can I do machine learning in JavaScript? Yes, especially inference: Transformers.js and ONNX Runtime Web run many models in the browser. Training large models is still a Python job.

Which vector database should I use? Start with FAISS or pgvector if you already use Postgres. Move to Qdrant or Milvus when you need a dedicated service with filtering and scale.

Is Ultralytics YOLO free for commercial use? It is AGPL-3.0; closed-source commercial use generally needs their commercial license. Read the license before shipping.

Where to Go Next

Contributing

Pull requests are welcome. To add a project it should be open source (or clearly marked), documented, and active within the last 12 months. Include the category, a one-line description in your own words, and why it belongs. Please also report projects that become archived so they can move to Legacy.

If this helped you, a star helps others find it.

License

Content is licensed under CC BY 4.0.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.