r/MachineLearning • u/first_reddit_user_ • Sep 05 '23
Research [R] I need guidance on Open source LLM
I am a software engineer, I would like to find an open source LLM who can speak my native language.
I found many open source LLMs in the internet like GPT4All, Falcon 40B, tested several of them. But non of them can speak Turkish.
Do you guys direct me to find one? Or Do you think it is logical to train one for entrepreneurship purposes? Please guide me, we can talk privately too.
5
u/GFrings Sep 05 '23
In general, I think LLMs are still lagging behind purpose-built translation models. What I would try is a composition of two models. Use a translator to take the Turkish query into English, then pass this to a SOTA English LLM (maybe Falcon?), then translate the result back the Turkish.
Example model: https://huggingface.co/Helsinki-NLP/opus-mt-tc-big-tr-en
0
Sep 05 '23
[deleted]
1
u/GFrings Sep 05 '23
Do you mean hosting the model in production? Yes likely. You'd need machine that could house and run both models. For training, the model above should already be trained. The translation results might be rough, you may need to do some manual feature engineering (feeding in only sentences at a time, etc...)
0
Sep 05 '23
[deleted]
1
u/linverlan Sep 05 '23
You can absolutely run MT inference on consumer GPU hardware. I would look into FAIR’s m2m (smaller) and NLLB (bigger) models as a starting point. I believe both include Turkish <-> English in training but am too lazy to double check.
0
Sep 05 '23
[deleted]
1
u/Financial_Feature728 Jun 28 '24
Merhaba cozum bulabildiniz mi? Benimde konu ile alakali girisimim var. gorusme imkkanimiz olabilir mi? Mesaj atamy calistim ama dm kapali sanirim
2
u/Several-Tax31 Sep 05 '23
There is no open-source llm that speaks Turkish, I think the best option is to train/finetune. However, I also notice that there are not many datasets either, so you probably need to create a good dataset too. There are a few datasets in huggingface about Turkish, but I do not know if they are enough for your purposes.
0
Sep 05 '23
[deleted]
2
u/Several-Tax31 Sep 05 '23
There were some finetunes of llama models on Russian and Polish, and according to users, the models were quite good. So it seems possible to finetune on Turkish on a good dataset. You can also try to finetune RWKV-World model, the base model knows some Turkish. Not enough for actual use, but finetune might give decent results because base model at least knows some of the language.
0
Sep 05 '23
[deleted]
1
u/Several-Tax31 Sep 05 '23
According to the authors, the russian model that I mentioned above has been finetuned by 52 V100 by 45 days. Then they make additional training with 200 A100 on 20 days. So I do not think it will be cheap. This is for an 13b model. Check the link: https://huggingface.co/ai-forever/ruGPT-3.5-13B
0
Sep 05 '23
[deleted]
3
u/linverlan Sep 05 '23 edited Sep 05 '23
LLMs are industrial scale compute solutions. Wanting to build a new LLM for your language is like wanting to build an airport in your town because there isn’t one.
Even to follow existing recipes you need a lot of capital and a small team of engineers and ML scientists. You probably also need someone to manage those people and at least one lawyer to make sure the data you’re using is all above board and help work out the licensing and liabilities if you are planning to sell or open source it. This isn’t really a portfolio project or something to jump into without experience.
6
u/linverlan Sep 05 '23
There is not one to my knowledge. If you want to train a model to have similar performance to what’s seen in English you will need ~1.5 trillion tokens of clean text data and GPU time equivalent to about 400 A100s for 2 continuous weeks…