![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
DNNツール等を用いた実験の環境構築〜モデル学習をサポートするツールです.
以下のコマンドでcoctl
コマンドがインストールされます.
pip install container_manager
example
ディレクトリに最も簡単なサンプルがあります.
example
ディレクトリのある場所でcoctl
コマンドを使うことでタスクを実行することができます.
run
コマンドでディレクトリを指定しタスクを作成,実行することができます.
$ coctl run example
上記のコマンドでpytorch1.4がインストールされた環境でタスク名/main.py
が実行されます(例ではexample/main.py
).
指定したディレクトリ名のタスクが作成されます.
coctl
コマンドは実行したいタスクのディレクトリのある場所で実行してください.
$ coctl run xxx/example
や$ coctl run ../example
のような指定はできないことに注意してください.
個別に必要なライブラリ等がある場合はexample/Dockerfile
に記載されているように適宜必要なライブラリを追加してください.
main.py
が実行される環境は起動時に毎回新規に環境が作られるため,必ずDockerfile
にpip install
などを記載し,指定するディレクトリの中に配置してください.
runの実行後はmain.pyのログが表示されます.Ctr-C
などでログの表示を止めることができますが,タスクのプロセス自体は終了しません.
現在走っているタスクを止めるには下記のrm
コマンドでタスクを削除するか,同名のタスクをrun
することで削除した後新しいタスクが作成されます.
実行したいタスクのmain.py
が実行時引数を必要とする場合には-o
オプションで引数を渡すことができます.
$ coctl run example -o args1:hoge args2:baa arg3
とした場合
$ main.py --args1=hoge --args2=baa --arg3
のように解釈されます.
学習データなどの入力データはtraining_input/タスク名
以下に配置してください.
出力データはtraining_output/タスク名
に出力されます.
タスクの実行される環境ではtraining_input/タスク名
は/input
に,training_output/タスク名
は/output
として認識されるのでタスクのmain.py
では/input
以下からデータを読み込み,/output
へデータを書き込みようにしてください.
list
コマンドで実行中及び完了済みのタスクが表示できます.
$ coctl list
task_name | status
example | running
test | exited
上記の例ではタスク名test
が完了済み,example
が実行中であることを示します.
実行中のタスクのログを確認するにはlist
コマンドを利用します.
$ coctl logs example
arg3=default arg
main is run!!!
count 0
count 1
count 2
count 3
-f
オプションをつけるとログをストリームで監視します.
rm
コマンドでタスクの削除を行うことができます.
$ coctl rm example
Task example is deleted
タスクの生成を繰り返すと不要なデータが蓄積することがあります.
ディスク容量が圧迫される場合はclean
コマンドで不要なデータを削除してください.
$ coctl clean
以下のコマンドでGPUを持つインスタンスを確保します.
gcloud beta compute \
--accelerator=type=nvidia-tesla-v100,count=1 \
--image-project=ml-images \
--boot-disk-size=50GB \
--zone=us-central1-a \
--machine-type=n1-standard-1 \
--subnet=default \
--network-tier=PREMIUM \
--maintenance-policy=TERMINATE \
--service-account=770963190637-compute@developer.gserviceaccount.com \
--scopes=https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring.write,https://www.googleapis.com/auth/trace.append,https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/devstorage.read_write \
--image=c3-deeplearning-tf-ent-2-1-cu100-20200131 \
--boot-disk-type=pd-standard \
--boot-disk-device-name=gpu-test \
--reservation-affinity=any
gpt-test
がインスタンス名なので適宜修正してください.
accelerator
をnvidia-tesla-k80
にしたり,count
を増やしたりすることができます.
また,boot-disk-size
を変えることでディスク容量が変えられます.
インスタンスの作成が完了し,サーバが起動すると以下のコマンドでログインできます.
gcloud compute ssh インスタcoンス名
*ログイン時にnvidiaドライバのインストールを行うか聞かれるのでy
を選択してください.
ContainerManagerの手順に従い,coctl
をインストールします.
上記の手順で作成したインスタンスはContainerManagerのrequirementを満たしているのでそのままpip install
が可能です.
FAQs
Container manager
We found that container-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.