This repository was archived by the owner on Apr 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgenerating_video_games.sh
More file actions
61 lines (57 loc) · 2.5 KB
/
generating_video_games.sh
File metadata and controls
61 lines (57 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
#################
# Examples codes to generate video games and animations
# (10min / 25) * 500 = around 3h20min per run (assuming 1 A-100 80Gb)
#################
## method 1) 500 random prompts from the 10K prompts of the Huggingface dataset
# High precision
CUDA_VISIBLE_DEVICES=0 python3 generate.py \
--output_dir=/home/mygames/500_minp0.05_t0.1 \
--n_answers_per_prompts=1 --max_num_seqs=25 --max_model_len=32768 \
--prompts_hf=SamsungSAILMontreal/GameAnimationPrompts10K \
--temperature=0.1 --min_p=0.05 \
--max_n_prompts=500 \
--randomize_order=True
# Precise, but more diverse (recommended setting, but we haven't tried many settings, so feel free to experiment)
CUDA_VISIBLE_DEVICES=0 python3 generate.py \
--output_dir=/home/mygames/500_minp0.05_t0.1 \
--n_answers_per_prompts=1 --max_num_seqs=25 --max_model_len=32768 \
--prompts_hf=SamsungSAILMontreal/GameAnimationPrompts10K \
--temperature=0.1 --min_p=0.05 \
--max_n_prompts=500 \
--randomize_order=True
## method 2) inline prompts (seperated by Ŧ)
# High precision
CUDA_VISIBLE_DEVICES=0 python3 generate.py \
--output_dir=/home/mygames/500_minp0.05_t0.1 \
--n_answers_per_prompts=1 --max_num_seqs=25 --max_model_len=32768 \
--prompts='Make me a game about a horseŦMake a game about a turtle' \
--temperature=0.1 --min_p=0.05
# Precise, but more diverse (recommended setting, but we haven't tried many settings, so feel free to experiment)
CUDA_VISIBLE_DEVICES=0 python3 generate.py \
--output_dir=/home/mygames/500_minp0.05_t0.1 \
--n_answers_per_prompts=1 --max_num_seqs=25 --max_model_len=32768 \
--prompts='Make me a game about a horseŦMake a game about a turtle' \
--temperature=0.1 --min_p=0.05
## method 3) file containing prompts (seperated by \nŦ\n)
# Example: example_prompt_file.txt
# -------------
# Generate me blablabla.
# Ŧ
# Generate me this other thing that
# looks like a turtle.
# Ŧ
# Generate me this final thing.
# -------------
# High precision
CUDA_VISIBLE_DEVICES=0 python3 generate.py \
--output_dir=/home/mygames/500_minp0.05_t0.1 \
--n_answers_per_prompts=1 --max_num_seqs=25 --max_model_len=32768 \
--prompt_file='example_prompt_file.txt' \
--temperature=0.1 --min_p=0.05
# Precise, but more diverse (recommended setting, but we haven't tried many settings, so feel free to experiment)
CUDA_VISIBLE_DEVICES=0 python3 generate.py \
--output_dir=/home/mygames/500_minp0.05_t0.1 \
--n_answers_per_prompts=1 --max_num_seqs=25 --max_model_len=32768 \
--prompt_file='example_prompt_file.txt' \
--temperature=0.1 --min_p=0.05