Skip to content

Commit c8796ec

Browse files
authored
Merge pull request #291 from NYU-RTS/minor-cleanup
ml/ai cleanup
2 parents e2360a9 + 17efda7 commit c8796ec

7 files changed

Lines changed: 25 additions & 25 deletions

File tree

docs/genai/01_getting_started/01_intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ If you're looking to harness Generative AI for administrative or classroom use,
66

77
Welcome to Pythia, the generative AI platform for research workflows. As part of the Pythia platform, the following capabilities are offered:
88
- [Access to externally hosted LLMs](../01_getting_started/02_llm_gateway.mdx)
9-
- [HPC resources for fine tuning LLMs](../../hpc/08_ml_ai_hpc/06_llm_fine_tuning.md)
9+
- [HPC resources for fine tuning LLMs](../../hpc/08_ml_ai_hpc/05_llm_fine_tuning.md)
1010

1111
:::info[Personal use]
1212
If you want to access NYU provided LLMs for personal use, proceed to https://gemini.google.com/app with your NYU credentials.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Fine tuning
22

3-
Please look into harnessing RAG before attempting to fine-tune a model. For open-weight models, you can use the HPC cluster to perform LoRA fine-tuning as [described here](../../hpc/08_ml_ai_hpc/06_llm_fine_tuning.md).
3+
Please look into harnessing RAG before attempting to fine-tune a model. For open-weight models, you can use the HPC cluster to perform LoRA fine-tuning as [described here](../../hpc/08_ml_ai_hpc/05_llm_fine_tuning.md).
File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Overview
2+
This directory provides two primary pathways for deploying and running Large Language Models (LLMs) on the NYU Torch cluster: Hugging Face Transformers (for research/experimentation) and vLLM (for high-performance serving).
3+
4+
## 1. Basic Inference (Hugging Face)
5+
This method is ideal for feature extraction, embeddings, or small-scale batch processing. Persistence is achieved by setting up the environment within an `ext3` overlay that can be mounted to an Apptainer container.
6+
7+
**Workflow:**
8+
Environment: Launch an Apptainer container with a read/write overlay.
9+
Persistence: Install `conda` and libraries directly into `/ext3`.
10+
Execution: Use AutoModel to load weights and perform a forward pass.
11+
Key File: `huggingface.py`
12+
Ideal for: Extracting `last_hidden_state` (embeddings) or sentiment classification.
13+
14+
## 2. High-Performance Serving (vLLM)
15+
vLLM is the recommended tool for production-level throughput and low-latency inference. It utilizes `PagedAttention` to manage memory efficiently. Please find our guide on [deploying LLMs with vLLM on Torch here](./03_vLLM.md).
16+
17+
**Why vLLM?**
18+
Speed: higher throughput than standard backends on Torch.
19+
Compatibility: Drop-in replacement for OpenAI API.
20+
21+
**Deployment Options:**
22+
Online: Use `vllm serve` to start an HTTP server accessible via curl or OpenAI clients.
23+
Offline: Use the LLM class within Python for processing large datasets without a server.

docs/hpc/08_ml_ai_hpc/LLM Inference/05_run_hf_model.md renamed to docs/hpc/08_ml_ai_hpc/LLM Inference/02_run_hf_model.md

File renamed without changes.
File renamed without changes.

docs/hpc/08_ml_ai_hpc/LLM Inference/llm_inferenceoverview.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)