Coder Social home page Coder Social logo

Comments (4)

EverythingNeurodiversity avatar EverythingNeurodiversity commented on August 24, 2024

https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 and https://huggingface.co/EleutherAI/gpt-neo-2.7B

from researchgpt.

mukulpatnaik avatar mukulpatnaik commented on August 24, 2024

Sounds really interesting! Have you made a fork where I can check out some of the modifications you're trying? I can think of a way for the embeddings but not sure about inference for gpt-neo

from researchgpt.

EverythingNeurodiversity avatar EverythingNeurodiversity commented on August 24, 2024

Not yet, having issues trying to get it working running locally on my machine. I think it this is sort of close to what is needed in the gpt function:

def gpt(self, prompt): print('Sending request to GPT-Neo') r = response = requests.post(HF_API_URL, headers=HF_headers, json=prompt) answer = r.choices[0]['text'] print('Done sending request to GPT-3') response = {'answer': answer, 'sources': sources} return response

where HF_API_URL = API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-neo-2.7B"
and headers = {"Authorization": "Bearer Hugging face API key"}

Was trying to test it with some dummy data on the HF playground but haven't figured it out yet. Will upload a fork if I get something going.

from researchgpt.

mukulpatnaik avatar mukulpatnaik commented on August 24, 2024

@EverythingNeurodiversity Sounds great, looking forward to it!

from researchgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.