Errors when running OpenAI's GPT-2 Output Detector - windows

I attempted to run OpenAI's GPT-2 Output Detector locally on a web UI, but when I run the program, it returns this:
RuntimeError: Error(s) in loading state_dict for RobertaForSequenceClassification:
Missing key(s) in state_dict: "roberta.embeddings.position_ids".
Unexpected key(s) in state_dict: "roberta.pooler.dense.weight", "roberta.pooler.dense.bias".
I've tried changing uninstalling and reinstalling a newer version of transformers, but it doesn't help. FYI: I'm running Windows 11.
Thanks

Related

Cypress Error after running open command...'error loading V8 startup snapshot file'. I'm not able to run cypress then

The exact error is:
[0328/091115.205:FATAL:v8_initializer.cc(447)] Error loading V8 startup snapshot file
Could you please help to fix and be able to use Cypress?
I tried (steps):
First: C:/inetpub/wwwroot/cypress-example>npm install
Second: C:/inetpub/wwwroot/cypress-example>npx cypress run
(both command using cmd.exe as administrator permission and I was running it in the file of the website example that I criated...C:/inetpub/wwwroot/cyrpress-teste)
exact error bellow:
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
[0328/091115.205:FATAL:v8_initializer.cc(447)] Error loading V8 startup snapshot file
Platform: win32-x64 (10.0.19044)
Cypress Version: 9.5.2
I got the same error in cypress v9.5.4
Solved this by installing older version.
Just uninstall the current version, write "cypress": "^8.4.1" and run npm i

Is there any way to run a program that is not installed properly?

I tried to run an incompletely installed program and then received this error. Is there anyway to solve this without the official installer? As far as I understand it, it's missing some registry entries. Can I fix this using information from the error log below?
The error log :
https://pastebin.com/VL5ps2hw
Thanks
When I try to run the software, I get this error as well:
Error Number:5. Error Source: mscorlib. This is error in paint 1.

Fault in reticulate in rstudio

476/5000
rstudio generates error when running R code with python code. At first the code worked very well but in the second installation it started to generate faults. Here is the link of the code in case you want to play #https: //www.r-bloggers.com/r-and-python-using-reticulate-to-get-the-best-of-both-worlds/
. My laptop is hp 4 gigs of ram and 500 mb of hard disk.
I would greatly appreciate who can explain the failure and how to solve it.
I have reinstalled anaconda last version twice.
library(reticulate)
use_python("/usr/local/bin/python")
use_virtualenv("r-reticulate")
os <- import("os")
Error: lexical error: invalid char in json text.
WARNING: The conda.compat modul
(right here) ------^
os$listdir(".")
Error: object 'os' not found
py_config()
Error: lexical error: invalid char in json text.
WARNING: The conda.compat modul
(right here) ------^
Actually, it comes from a deprecation warning reported a few days ago (fix compat import showing warning #8507).
But the fact is that this warning in "conda.compat" generates some errors, for example in the case of using conda environments in R through "reticulate" functions. This issue has been reported quite recently Conda warnings taken as errors #477.
The solution is to simply install the github version of "reticulate" in order to avoid these errors and ignore the conda warnings which shouldn't necessarily impede these functionalities. You can do it like this way:
remotes::install_github("rstudio/reticulate")
And don't forget to have the latest Rtools installed in your operating system!
This might be useful for you: https://docs.anaconda.com/anaconda/user-guide/tasks/switch-environment/
I have Anaconda, and set up Python 2 environment. Once activated, run 'use_python' with the path to that environment and set the 'required' parameter to TRUE.
I had the same problem. I solved the problem by installing an older version of conda.
In anaconda promt
conda install conda = 4.1.6

Creating New Shared NativeScript Project doesn't work

When I run the following:
ng new --collection=#nativescript/schematics myProject --shared
It does not work. I have installed the schematic and everything according to the docs but that command does nothing. Any ideas?
I have followed the documentation here:
https://docs.nativescript.org/angular/code-sharing/creating-a-new-project
I checked for an invalid .angular.json but there is not one in my home directory.
I am running angular 6.0.3
There are no errors, I run the command it waits about 5 seconds and just returns doing nothing.
I found that I was running the wrong version of the Angular CLI, but I have upgraded and now when I run the build for iOS I get the following:
Error: Cannot connect to device socket.The error message is Device socket port cannot be found.
at Errors.fail (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/common/errors.js:125:28)
at Errors.failWithoutHelp (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/common/errors.js:135:21)
at AppDebugSocketProxyFactory.<anonymous> (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/device-sockets/ios/app-debug-socket-proxy-factory.js:105:38)
at Generator.throw (<anonymous>)
at rejected (/Users/jonathan/.nvm/versions/node/v10.8.0/lib/node_modules/nativescript/lib/device-sockets/ios/app-debug-socket-proxy-factory.js:5:65)
The Emulator opens and the app gets installed on the emulator but crashes as soon as it starts. I have tried to make this work with just a hello world app and it works correctly. But when using the shared flag it does not work.

Error -60005 when install Cocos2d-iPhone v3 RC4

When I try to install Cocos2d-iphone 3.0.0 RC4, I got an error: (run without sudo)
Error -60005 occurred while executing script with privileges.
So, I try to show its package content and use terminal to do: cd ...Cocos2D Installer 3.0.0.app/Contents/MacOS
I try this command: (with sudo)
sudo ./Cocos2D\ Installer\ 3.0.0
It works but I got log with some errors:
[1m>>> Installing Cocos2D-v3.0.0 files (B[m
[1m>>> Installing Cocos2D-v3.0.0 templates (B[m
[4m[1mCocos2D Template Installer (Cocos2D-v3.0.0)(B[m
Error: [31m✖︎(B[m Script cannot be executed as root.
In order for it to work properly, please execute the script again without 'sudo'.
If you want to know more about how to use this script execute '/Users/viethung/Downloads/Cocos2D-v3.0.0/install.sh --help'.
[1m>>> Building/Installing Cocos2D-v3.0.0 documentation, this may take a minute.... (B[m
appledoc version: 2.2 (build 963)
Generation step 4/5 failed: GBDocSetInstallGenerator failed generating output, aborting!
Documentation set was installed, but couldn't reload documentation within Xcode.
Xcode got an error: No documentation set present at specified path.
[1m>>> Cocos2D-v3.0.0 installation complete! (B[m
Are there any way is better than this way?
I have same problem.
I think you installed old cocos2d-iphone and it caused this problem.
You should remove old cocos2d-iphone first. I removed:
~/Library/Developer/Xcode/cocos2d v3.x
And install again. It works for me.
Hope it works for you :)

Resources