GithubHelp home page GithubHelp logo

Comments (10)

Aman-4-Real avatar Aman-4-Real commented on July 17, 2024 8

I have trained a Chinese version of Self-RAG based on Baichuan2-7B-Chat, which you can download from here. All the reflection tokens are the same as the English version. I hope you find this helpful :).

from self-rag.

Aman-4-Real avatar Aman-4-Real commented on July 17, 2024 4

I have trained a Chinese version of Self-RAG based on Baichuan2-7B-Chat, which you can download from here. All the reflection tokens are the same as the English version. I hope you find this helpful :).

Thanks for your great work! Could you provide Chinese training data?

Yes! I just now uploaded a file containing 4w constructed data, which you can find and download from huggingface.

from self-rag.

Youngphone avatar Youngphone commented on July 17, 2024 1

I have trained a Chinese version of Self-RAG based on Baichuan2-7B-Chat, which you can download from here. All the reflection tokens are the same as the English version. I hope you find this helpful :).

Thanks for your great work! Could you provide Chinese training data?

Yes! I just now uploaded a file containing 4w constructed data, which you can find and download from huggingface.

Thanks for your great work !
Could you provide the code you used to construct data and trian selfrag-zh_baichuan2_7b_chat ?

from self-rag.

fate-ubw avatar fate-ubw commented on July 17, 2024

Definitely not, self rag only provides English data. If you need Chinese training data, you need to go through the train data creation process

from self-rag.

mawenju203 avatar mawenju203 commented on July 17, 2024

https://huggingface.co/datasets/selfrag/selfrag_train_data;

请问一下,这个数据的处理过程以及原始数据,有吗?

另外有个问题

image

伪代码中的实现是就是这种形式的吗?

from passage_retriever import Retriever
retriever = Retriever({})
retriever.setup_retriever_demo("facebook/contriever-msmarco", "enwiki_2020_intro_only/enwiki_2020_dec_intro_only.jsonl", "enwiki_2020_intro_only/enwiki_dec_2020_contriever_intro/*",  n_docs=5, save_or_load_index=False)
retrieved_documents = retriever.search_document_demo(query_3, 5)
prompts = [format_prompt(query_3, doc["title"] +"\n"+ doc["text"]) for doc in retrieved_documents]
preds = model.generate(prompts, sampling_params)
top_doc = retriever.search_document_demo(query_3, 1)[0]
print("Reference: {0}\nModel prediction: {1}".format(top_doc["title"] + "\n" + top_doc["text"], preds[0].outputs[0].text))

from self-rag.

mawenju203 avatar mawenju203 commented on July 17, 2024

Definitely not, self rag only provides English data. If you need Chinese training data, you need to go through the train data creation process

谢谢,

from self-rag.

AkariAsai avatar AkariAsai commented on July 17, 2024

Hi thank you so much for answering the question, @fate-ubw (I just answered your question, by the way!)

@mawenju203 Hi thanks for your interest. We don't have any Chinese training data. Would be exciting to see Self-RAG applications to other languages, though!

Regarding the second question (I used Google translate, and it said you asked if the demo code is the same as the pseudo-code), the code snippet is a simple interface to run Self-RAG, so it's not the same as the original inference logic. If you are interested, please take a look at the run_long_form_static.py script.

from self-rag.

AkariAsai avatar AkariAsai commented on July 17, 2024

Thank you so much for the info! Great to hear people tested Self-RAG in other languages :) I'm closing this issue now but feel free to reopen it!

from self-rag.

hummingbird2030 avatar hummingbird2030 commented on July 17, 2024

I have trained a Chinese version of Self-RAG based on Baichuan2-7B-Chat, which you can download from here. All the reflection tokens are the same as the English version. I hope you find this helpful :).

Thanks for your great work! Could you provide Chinese training data?

from self-rag.

Aman-4-Real avatar Aman-4-Real commented on July 17, 2024

I have trained a Chinese version of Self-RAG based on Baichuan2-7B-Chat, which you can download from here. All the reflection tokens are the same as the English version. I hope you find this helpful :).

Thanks for your great work! Could you provide Chinese training data?

Yes! I just now uploaded a file containing 4w constructed data, which you can find and download from huggingface.

Thanks for your great work ! Could you provide the code you used to construct data and trian selfrag-zh_baichuan2_7b_chat ?

I just used the original data creation pipeline in this repo, by following which you can apply to your own sft datasets.

from self-rag.

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.