Reputation
Badges 1
47 × Eureka!Yes, it fixed. If I install trains from github repo directly withouth using my local version. But, is there another way to avoid it, because I might change the code for my personal use, that's why I want to install trains from my local.
It worked. Thanks a lot 🙂
I will install from repository and try it again, my trains-agent version is 0.15.2rc0, but I could not find trains version, it might be about version
print(task.data.hyperparams) I tried this one
AgitatedDove14 Is it possible to delete specified worker? I mean, I have 10 workers and I want to delete one of them?
I think you can reproduce it by cloning the trains repository, then pip install -e ~/trains and then you need to run one of the examples from trains examples by writing python3 toy_base_task.py . Then you should see this odd bug.
Yes, I mean removing agent from the server
TimelyPenguin76 It is 2.1, but 2.9 files are also exist. How can I update it?
AgitatedDove14 , sorry for my late response, I will try it. it might work and Thanks.
-e git+ torch == 1.5.1 torchvision == 0.6.1 trains == 0.15.2rc0Actually, package version is also written. However, because of git ref, trains-agent fails.
chown: cannot access '/root/.cache/pip': No such file or directory It gives this error
When I print (task.data) there is no hyperparams in dictionary.
AgitatedDove14 /usr/bin/python3
/usr/local/bin/trains-agent
I was using APIClient inside of trains-agent and in trains-agent there is no v2.9. I think that's why I could not get hyperparams
In older versions it returns:"parameters": { "batch_size": "64", "test_batch_size": "1000", "epochs": "1", "lr": "0.01", "momentum": "0.5", "no_cuda": "False", "seed": "1", "log_interval": "10", "save_model": "True" }But, now it just returns empty dict. I think it is because of separation of hyper-parameters section on UI.
Ups, you misunderstood me. I just want to remove specified agent. For example, I had 3 agents on the same queue with different worker names. So, if I remove them by applying what you said in this thread, all of them will be removed. However, I just want to remove one of them.
I wil try it with different port
I couldn't tell. Assume, I have a huge github repository, it has 100 ml project and I want to see all of them in the trains server. Should I write "train.init()" and run them all in order to see them in the server or is there any other way to see all of them in the server without run them all.
If I delete this folder that is in ~/.trains/vcs-cache directory, it fixes the problem
At the end, there is an error about "pip"
fatal: destination path '/home/dogukan/.trains/vcs-cache/pre-post-script-repo.git.35f82b395021c8e6afef186fafa662cc/pre-post-script-repo.git' already exists and is not an empty directory. Repository cloning failed: Command '['clone', 'git@192.168.1.230:dogukan/pre-post-script-repo.git', '/home/dogukan/.trains/vcs-cache/pre-post-script-repo.git.35f82b395021c8e6afef186fafa662cc/pre-post-script-repo.git', '--quiet', '--recursive']' returned non-zero exit status 128. Cannot find output file
I mean, you know in trains github, there are examples and when I deploy the server, these examples are exist in server with draft status. So, I want to add my examples in the same way.
from trains_agent import APIClient client = APIClient() task = client.tasks.get_by_id(task="5b5cbdc5e7bc4cd5ba39081b5b4a0423") print(task.execution.parameters)