All Templates / AI/ML
hugging-face-transformer
A Hugging Face Transformer Railway Template
transformer-fastapi
JigsawStack/huggingface-transformers-railway-template
Just deployed
This example starts up a FastAPI server which runs the Hugging Face Transformers.
This example runs an embedding model on the CPU which works great with railway as resources can scale per requests.
Note: This won't work for GPU work flows and will crash.
or
Install the Railway CLI, then run railway up
Uses Nixpacks to deploy on railway which runs Python 3.11 by default.
pip install -r requirements.txt
hypercorn main:app --reload
The team at JigsawStack is launching an embedding model and we're experimenting with different infrastructure for scalable and affordable CPU usage. Check out the embedding model here
NIXPACKS_PYTHON_VERSION
in the variables tab to the desired versionTemplate Content
transformer-fastapi
JigsawStack/huggingface-transformers-railway-templateDetails
Yoeven D Khemlani's Projects
Created on Jan 6, 2025
11 total projects
6 active projects
33% success on recent deploys
Python
AI/ML
More templates in this category
openui
Deploy OpenUI: AI-powered UI generation with GitHub OAuth and OpenAI API.
zexd's Projects