Comments (4)
pls ignore this. I found an alternate way to achieve this.
from gpt-j.
from gpt-j.
How did you fix it?
from gpt-j.
Can you update how to fix this issue?
I am working on GPT-J to generate prompts and I am unable to run the code.
During handling of the above exception, another exception occurred:
I am getting the following error when I tried running python basic_usage_template.py
and python advanced_usage_template.py
Traceback (most recent call last):
File "/hdd2/srinath/gpt-j/advanced_usage_template.py", line 58, in <module>
response = context_setting.completion(prompt,
File "/hdd2/srinath/anaconda3/envs/SD_Aug/lib/python3.10/site-packages/gpt_j/gptj_api.py", line 67, in completion
self.response = generate(f"{self.new_prompt} {user}: {self.main_intention}", token_max_length=max_tokens, temperature=temperature, top_p=top_p, top_k=top_k, rep=rep)
File "/hdd2/srinath/anaconda3/envs/SD_Aug/lib/python3.10/site-packages/gpt_j/Gptj.py", line 12, in generate
result = URL.json()
File "/hdd2/srinath/anaconda3/envs/SD_Aug/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
My python version is 3.10.6
from gpt-j.
Related Issues (12)
- how do i install it? HOT 14
- Endpoint seems to be down HOT 1
- Recieving the following error when I try to copy/paste the "Basic Usage" file into Visual Studio Code HOT 1
- JSONDecodeError when trying to execute basic and advanced python scripts HOT 4
- How do I include a stop sequence? HOT 7
- train HOT 1
- Could you open source the github? HOT 3
- New API Limit? HOT 1
- Decompressing step_383500.tar.zstd
- Foul Language Filter False Positives HOT 1
- Is the API currently down?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt-j.