How to set different random seed than the default ones?

I want to run multiple allennlp train runs with different random seeds. How do I set the random seeds in the jsonnet file?

Thanks in advance.

There are a few seeds you can set in https://github.com/allenai/allennlp/blob/master/allennlp/common/util.py#L214.

Hi @michaels. Thanks for the reply. But I want to pass it as a parameter in allennlp train command so I can measure the variance of the model given different seeds.

Here is how I changed the default seeds in a configuration file: https://github.com/Jbar-ry/multilingual-parsing/blob/master/configs/monolingual/dependency_parser_char.jsonnet

You can set the values for these seeds in a bash script like so: