Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client can not connect the server #21

Open
duoduo07 opened this issue Mar 29, 2024 · 5 comments
Open

client can not connect the server #21

duoduo07 opened this issue Mar 29, 2024 · 5 comments

Comments

@duoduo07
Copy link

Error: Unable to look up model info. Are you sure you're running an activation server for this dataset? Current URL: http://localhost:8002

server and client are deployed on the same machine,
server start as the command:
python neuron_explainer/activation_server/main.py --run_model False --port 8000

client start as the command:
NEURON_VIEWER_ACTIVATION_SERVER_URL=http://localhost:8000 npm start

Is the OPENAI_API_KEY neccssary?

@starlitsky2010
Copy link

starlitsky2010 commented Apr 16, 2024

Hi OpenAI guys,

I also met this problem:

Step 1:
transformer-debugger$ export export OPENAI_API_KEY=sk-xxxxx
transformer-debugger$ python neuron_explainer/activation_server/main.py --model_name gpt2-small --port 8005
Step 2:
transformer-debugger/neuron_viewer$ NEURON_VIEWER_ACTIVATION_SERVER_URL=http://10.0.80.43:8005 npm start

[email protected] start
parcel src/index.html --no-cache

Server running at http://localhost:1234
✨ Built in 9.41s

Visit http://10.0.80.43:1234/, it prints:

Neuron viewer
Loading...

Visit http://10.0.80.43:1234/gpt2-small/tdb_alpha

An error occurs:
Error: Unable to look up model info. Are you sure you're running an activation server for this dataset? Current URL: http://10.0.80.43:8005

Thanks

@starlitsky2010
Copy link

I

Error: Unable to look up model info. Are you sure you're running an activation server for this dataset? Current URL: http://localhost:8002

server and client are deployed on the same machine, server start as the command: python neuron_explainer/activation_server/main.py --run_model False --port 8000

client start as the command: NEURON_VIEWER_ACTIVATION_SERVER_URL=http://localhost:8000 npm start

Is the OPENAI_API_KEY neccssary?

Hi duoduo07,

Have you fixed this problem?

Thanks

@XinyuZhou2000
Copy link

XinyuZhou2000 commented Apr 18, 2024

hi, same problem.
in neuron_viewer/src/requests/paths.ts try this:

export function getActivationServerUrl(): string {
  if (process.env.NEURON_VIEWER_ACTIVATION_SERVER_URL) {
    return process.env.NEURON_VIEWER_ACTIVATION_SERVER_URL;
  }
  return "http://localhost:8000";
}

 #change 0.0.0.0 into localhost

maybe you're using a school/company's internet

@Sfc-001
Copy link

Sfc-001 commented Jun 19, 2024

i can not get gpt2-small

@Sfc-001
Copy link

Sfc-001 commented Jun 19, 2024

the programer will happen : Ran out of input.somebady reslove it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants