question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues using colab

See original GitHub issue

Is here anyone using google colab to train this model? I have faced many problems such as: 1- The model was unable to create gold_conll files in colab, I have built them in my system locally and then uploaded it to my drive to solve this. 2- I am unable to train the model, it reports a problem related to pyhocon such as follows:

Traceback (most recent call last):
  File "train.py", line 18, in <module>
    config = util.initialize_from_env()
  File "/content/coref/util.py", line 37, in initialize_from_env
    config = pyhocon.ConfigFactory.parse_file("experiments.conf")[name]
  File "/usr/local/lib/python3.6/dist-packages/pyhocon/__init__.py", line 32, in parse_file
    return ConfigFactory.parse_string(content, os.path.dirname(filename))
  File "/usr/local/lib/python3.6/dist-packages/pyhocon/__init__.py", line 60, in parse_string
    return ConfigParser().parse(content, basedir)
  File "/usr/local/lib/python3.6/dist-packages/pyhocon/__init__.py", line 198, in parse
    ConfigParser._resolve_substitutions(config, substitutions)
  File "/usr/local/lib/python3.6/dist-packages/pyhocon/__init__.py", line 241, in _resolve_substitutions
    is_optional_resolved, resolved_value = ConfigParser._resolve_variable(config, substitution)
  File "/usr/local/lib/python3.6/dist-packages/pyhocon/__init__.py", line 223, in _resolve_variable
    col=col(substitution.loc, substitution.instring)))
pyhocon.exceptions.ConfigSubstitutionException: Cannot resolve variable ${data_dir} (line: 95, col: 16)

any help with this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Atul-Anand-Jhacommented, Jan 3, 2020

Thanks for the reply. Btw, I also figured out a way of doing this via Python script itself; using os.envion[""] setup function.

2reactions
AradAshraficommented, Jan 2, 2020

Hi @Atul-Anand-Jha I am sorry for my delay. I resolve the exporting issue by running the related commands and the export itself inside a bash script file like:

#!/bin/bash
export data_dir="conll-2012"
CUDA_VISIBLE_DEVICES=0 python3 train.py train_spanbert_base
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · googlecolab/colabtools - GitHub
On Karpathy's Pytorch course, they found out Numerical instability in Google Colab, but no issues on local device. bug triaged.
Read more >
Troubleshooting Google Colab for the Total Newbie
Working in Google Colab for the first time has been completely awesome and pretty shockingly easy, but it hasn't been without a couple...
Read more >
Explained: 5 Drawback Of Google Colab For Machine Learners
Saving & Storage Problems: Uploaded files are removed when the session is restarted because Google Colab does not provide a persistent storage ...
Read more >
Careful Who You Colab With:. abusing google colaboratory
In this article, I will introduce a new threat vector via Google Colaboratory that puts your Google Drive data, among other things, at...
Read more >
Colaboratory (@GoogleColab) / Twitter
dataframes interactive in Colab with a click of the mouse! ... FYI: Colab is currently having an issue with a repeated login loop;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found