jetson-examples 0.0.5__py3-none-any.whl → 0.0.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jetson-examples
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Summary: Running Gen AI models and applications on NVIDIA Jetson devices with one-line command
5
5
  Author-email: luozhixin <zhixin.luo@seeed.cc>
6
6
  Project-URL: Homepage, https://github.com/Seeed-Projects/jetson-examples
@@ -33,6 +33,7 @@ pip install jetson-examples
33
33
  ```
34
34
 
35
35
  - [more installation methods](./docs/install.md)
36
+ - If you have already installed, you can use `pip install jetson-examples --upgrade` to update.
36
37
 
37
38
  ## Quickstart
38
39
 
@@ -48,14 +49,16 @@ reComputer supports a list of examples from [jetson-ai-lab](https://www.jetson-a
48
49
 
49
50
  Here are some examples that can be run:
50
51
 
51
- | Example | Type | Model/Data Size | Image Size | Command |
52
- | ---------------------- | ------------------------ | --------------- | ---------- | --------------------------------------- |
53
- | text-generation-webui | Text (LLM) | 3.9GB | 14.8GB | `reComputer run text-generation-webui` |
54
- | LLaVA | Text + Vision (VLM) | 13GB | 14.4GB | `reComputer run llava` |
55
- | stable-diffusion-webui | Image Generation | 3.97G | 7.3GB | `reComputer run stable-diffusion-webui` |
56
- | nanoowl | Vision Transformers(ViT) | 613MB | 15.1GB | `reComputer run nanoowl` |
57
- | nanodb | Vector Database | 76GB | 7.0GB | `reComputer run nanodb` |
58
- | whisper | Audio | 1.5GB | 6.0GB | `reComputer run whisper` |
52
+ | Example | Type | Model/Data Size | Image Size | Command |
53
+ | ------------------------------------------------ | ------------------------ | --------------- | ---------- | --------------------------------------- |
54
+ | 🆕 llama3 | Text (LLM) | 4.9GB | 10.5GB | `reComputer run llama3` |
55
+ | 🆕 [ollama](https://github.com/ollama/ollama) | Inference Server | * | 10.5GB | `reComputer run ollama` |
56
+ | LLaVA | Text + Vision (VLM) | 13GB | 14.4GB | `reComputer run llava` |
57
+ | Live LLaVA | Text + Vision (VLM) | 13GB | 20.3GB | `reComputer run live-llava` |
58
+ | stable-diffusion-webui | Image Generation | 3.97G | 7.3GB | `reComputer run stable-diffusion-webui` |
59
+ | nanoowl | Vision Transformers(ViT) | 613MB | 15.1GB | `reComputer run nanoowl` |
60
+ | [nanodb](../reComputer/scripts/nanodb/readme.md) | Vector Database | 76GB | 7.0GB | `reComputer run nanodb` |
61
+ | whisper | Audio | 1.5GB | 6.0GB | `reComputer run whisper` |
59
62
 
60
63
  > Note: You should have enough space to run example, like `LLaVA`, at least `27.4GB` totally
61
64
 
@@ -1,24 +1,24 @@
1
- reComputer/__init__.py,sha256=S7u1lbuWmM3A3ajykBialmPoJUK6Jg-WmNqM-9OZFdk,22
1
+ reComputer/__init__.py,sha256=R9xOYoYrWKcfO5zvTeGC3m_eDNOvxMd8CocQs2tLufo,22
2
2
  reComputer/main.py,sha256=IOrKYEatTeAfvM1yRNNrZDAfM9LsER334FgOuRVah44,1821
3
3
  reComputer/scripts/check.sh,sha256=cUMwAjHpgJoaD5a8gTLJG7QWjF9CyKPgQ-ewRNK3FD8,127
4
- reComputer/scripts/run.sh,sha256=zlVqaCu12VPkecxy5FR0XDxbOeogeGBKuPU0Ow2qJyw,2066
4
+ reComputer/scripts/run.sh,sha256=cGy4X7-UywgFJjge_R-yuKab8rfEw_-8ec6i57cef18,1370
5
5
  reComputer/scripts/update.sh,sha256=9Pw9-laO8NU2-4t4UisjFEwHPY5-ZAIoDi3AqWBzBbs,900
6
6
  reComputer/scripts/Sheared-LLaMA-2.7B-ShareGPT/run.sh,sha256=ktndtYTKXLJd6pHi5WN93NBLxreUsCe9Rim3U7-cyJs,134
7
- reComputer/scripts/hello-world/readme.md,sha256=LbPVSal_UuOsJe1v4otMfci6UN0gUqecQlynQaHiHME,87
8
- reComputer/scripts/hello-world/run.sh,sha256=ZjFioxwmBTtvZoBHJNpHc6AS97HksyXnOnKy3LZTShs,280
9
7
  reComputer/scripts/live-llava/run.sh,sha256=4sWld5d8Fkr9GUVqLH2S1RyOKOjobhjojSzuJu8EuCg,10137
8
+ reComputer/scripts/llama3/run.sh,sha256=i2MAtkWdYq-XaHUHZ13uO-8QeshCEBq32DOi1wCBSeo,226
10
9
  reComputer/scripts/llava/run.sh,sha256=xukwaZz7YKQFc-_LtuBUL6zcywciS0_IQ8OeTAKGe3o,148
11
10
  reComputer/scripts/llava-v1.5-7b/run.sh,sha256=Gsd3vo91bDV8LSuQPnYX82jsWXcbT2maTASA0u4ufBQ,147
12
11
  reComputer/scripts/llava-v1.6-vicuna-7b/run.sh,sha256=89VjiRvleYluLiSXfDOJBPXnkG8g0wDb3y5bFD_Nus0,165
13
12
  reComputer/scripts/nanodb/readme.md,sha256=kzWnCq4qAB95Sssj8mFs_VrH5ju3phSqygLjSRO3ceQ,247
14
- reComputer/scripts/nanodb/run.sh,sha256=6MKQgYqDhg-Rvh3Sk4sNm5V2jg1ZgtSVvB2fOjH_KuE,1875
13
+ reComputer/scripts/nanodb/run.sh,sha256=YHuLNtWcmx82QBnTa4vGzhFjNM9MJUbyi_XYbMG6hfQ,2571
15
14
  reComputer/scripts/nanoowl/run.sh,sha256=at89nn0-95XonUvLf8u6f_rAwTuw2iS7MhnlApdzEQg,161
15
+ reComputer/scripts/ollama/run.sh,sha256=AUEYvW4l8msN-XOouET-l_lYu07CR8ssMNf6u0u2n6I,143
16
16
  reComputer/scripts/stable-diffusion-webui/run.sh,sha256=ralIICACH1AiK2A8JEekUS6Cof4ZGjaRNmPYgPPJybc,57
17
17
  reComputer/scripts/text-generation-webui/run.sh,sha256=WZ2wwuSuXkd6KVQ0lx9KUvNKHx_dN-UBzraV2papdqM,304
18
18
  reComputer/scripts/whisper/run.sh,sha256=u5JPV0XhTM2Q02GOOPkoLUS-jNRE1DWxyW7FhV5qmb4,43
19
- jetson_examples-0.0.5.dist-info/LICENSE,sha256=ac_LOi8ChcJhymEfBulX98Y06wTI2IMcQnqCXZ5yay4,1066
20
- jetson_examples-0.0.5.dist-info/METADATA,sha256=VcOxBLpzkXjUFAw1R9avnl6fg279Yk9LQANWGOzhSeA,3982
21
- jetson_examples-0.0.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
- jetson_examples-0.0.5.dist-info/entry_points.txt,sha256=5-OdcBifoDjVXE9KjNoN6tQa8l_XSXhdbBEgL2hxeDM,58
23
- jetson_examples-0.0.5.dist-info/top_level.txt,sha256=SI-liiUOkoGwOJfMP7d7k63JKgdcbiEj6DEC8QIKI90,11
24
- jetson_examples-0.0.5.dist-info/RECORD,,
19
+ jetson_examples-0.0.7.dist-info/LICENSE,sha256=ac_LOi8ChcJhymEfBulX98Y06wTI2IMcQnqCXZ5yay4,1066
20
+ jetson_examples-0.0.7.dist-info/METADATA,sha256=LNYwoB1B0BJlPmXAu57QFaXXWJhjdsHTP4WI-4onuZM,4598
21
+ jetson_examples-0.0.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
+ jetson_examples-0.0.7.dist-info/entry_points.txt,sha256=5-OdcBifoDjVXE9KjNoN6tQa8l_XSXhdbBEgL2hxeDM,58
23
+ jetson_examples-0.0.7.dist-info/top_level.txt,sha256=SI-liiUOkoGwOJfMP7d7k63JKgdcbiEj6DEC8QIKI90,11
24
+ jetson_examples-0.0.7.dist-info/RECORD,,
reComputer/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.5"
1
+ __version__ = "0.0.7"
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+
3
+ # try stop old server
4
+ docker rm -f ollama
5
+ # start new server
6
+ ./run.sh -d --name ollama $(./autotag ollama)
7
+ # run a client
8
+ ./run.sh $(./autotag ollama) /bin/ollama run llama3
9
+ # clean new server
10
+ docker rm -f ollama
@@ -3,6 +3,31 @@
3
3
  BASE_PATH=/home/$USER/reComputer
4
4
  JETSON_REPO_PATH="$BASE_PATH/jetson-containers"
5
5
 
6
+ check_disk_space() {
7
+ directory="$1" # a directory
8
+ required_space_gb="$2" # how many GB we need
9
+
10
+ # get disk of directory
11
+ device=$(df -P "$directory" | awk 'NR==2 {print $1}')
12
+ echo $device
13
+
14
+ # get free space in KB
15
+ free_space=$(df -P "$device" | awk 'NR==2 {print $4}')
16
+ echo $free_space
17
+
18
+ # change unit to GB
19
+ free_space_gb=$(echo "scale=2; $free_space / 1024 / 1024" | bc)
20
+ echo $free_space_gb
21
+
22
+ # check and fast-fail
23
+ if (( $(echo "$free_space_gb >= $required_space_gb" | bc -l) )); then
24
+ echo "disk space ($1) enough, keep going."
25
+ else
26
+ echo "disk space ($1) not enough!! we need $2 GB!!"
27
+ exit 1
28
+ fi
29
+ }
30
+
6
31
  # check data files TODO: support params to force download
7
32
  DATA_PATH="$JETSON_REPO_PATH/data/datasets/coco/2017"
8
33
  if [ ! -d $DATA_PATH ]; then
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ # try stop old server
4
+ docker rm -f ollama
5
+ # run Front-end
6
+ ./run.sh $(./autotag ollama)
7
+ # user only can access with http://ip:11434
reComputer/scripts/run.sh CHANGED
@@ -18,31 +18,6 @@ check_is_jetson_or_not() {
18
18
  }
19
19
  check_is_jetson_or_not
20
20
 
21
- check_disk_space() {
22
- directory="$1" # a directory
23
- required_space_gb="$2" # how many GB we need
24
-
25
- # get disk of directory
26
- device=$(df -P "$directory" | awk 'NR==2 {print $1}')
27
- echo $device
28
-
29
- # get free space in KB
30
- free_space=$(df -P "$device" | awk 'NR==2 {print $4}')
31
- echo $free_space
32
-
33
- # change unit to GB
34
- free_space_gb=$(echo "scale=2; $free_space / 1024 / 1024" | bc)
35
- echo $free_space_gb
36
-
37
- # check and fast-fail
38
- if (( $(echo "$free_space_gb >= $required_space_gb" | bc -l) )); then
39
- echo "disk space ($1) enough, keep going."
40
- else
41
- echo "disk space ($1) not enough!! we need $2 GB!!"
42
- exit 1
43
- fi
44
- }
45
-
46
21
  echo "run example:$1"
47
22
  BASE_PATH=/home/$USER/reComputer
48
23
 
@@ -1,3 +0,0 @@
1
- # hello-world
2
-
3
- - print `hello-world` to show how to add your project into this package
@@ -1,9 +0,0 @@
1
- #!/bin/bash
2
- ./run.sh $(./autotag llava) \
3
- python3 -m nano_llm.agents.video_query --api=mlc \
4
- --model Efficient-Large-Model/VILA-2.7b \
5
- --max-context-len 768 \
6
- --max-new-tokens 32 \
7
- --video-input /dev/video0 \
8
- --video-output webrtc://@:8554/output \
9
- --nanodb /data/nanodb/coco/2017