Skip to content

Commit 9f8ff3b

Browse files
basic utility scripts initial commit
1 parent 8374537 commit 9f8ff3b

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed
Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1-
### Basic Utility Scripts
2-
3-
Short & simple scripts for basic health checks, downaloading AI models, etc.
1+
# Basic Utility Scripts
2+
3+
This page contains useful scripts for basic actions, such as checking CUDA health or downloading AI model.
4+
5+
Reviewed: 08.06.2024
6+
7+
# When to use this asset?
8+
9+
When you are planning to install and run a pretrained AI model from Huggingface on an OCI GPU instance.
10+
The examples use LLAMA3, for illustrative purposes, and Torch library.
11+
12+
# How to use this asset?
13+
14+
1. Run `pip install -r requirements.txt`
15+
2. Pick a script from this directory based on its self-descriptive name, and review its content before using. Some scripts contains placeholders such as YOUR TOKEN to be replaced by Huggingface access token
16+
3. Run the script. As some scripts may need to download an AI model, its first invocation may take time
17+
18+
## Prerequisites & Docs
19+
20+
### Prerequisites
21+
22+
* An OCI GPU instance
23+
* A Huggingface account with a valid Auth Token
24+
25+
# License
26+
27+
Copyright (c) 2024 Oracle and/or its affiliates.
28+
29+
Licensed under the Universal Permissive License (UPL), Version 1.0.
30+
31+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
torch
2+
transformers
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
time
2+
torch
3+
pynvml
4+
fastapi
5+
pydantic
6+
transformers

0 commit comments

Comments
 (0)