This model is a fine-tuned version of
GoToCompany/llama3-8b-cpt-sahabatai-v1-base.
It has been trained using
TRL.
1from transformers import pipeline
2
3# add this prefix "psi-" to your question
4question = "psi-Kenapa aku perlu memaafkan diriku sebelum orang lain?"
5generator = pipeline("text-generation", model="None", device="cuda")
6output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
7print(output["generated_text"])
1import torch
2from transformers import pipeline
3
4model_id = "akahana/indo-psikologi-8b"
5pipe = pipeline(
6 "text-generation",
7 model=model_id,
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10)
11
12# add this prefix "psi-" to your question
13messages = [
14 {"role": "user", "content": "psi-Kenapa aku perlu memaafkan diriku sebelum orang lain?"},
15]
16outputs = pipe(
17 messages,
18 max_new_tokens=256,
19)
20print(outputs[0]["generated_text"][-1])
This model was trained with SFT.
1@misc{vonwerra2022trl,
2 title = {{TRL: Transformer Reinforcement Learning}},
3 author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
4 year = 2020,
5 journal = {GitHub repository},
6 publisher = {GitHub},
7 howpublished = {\url{https://github.com/huggingface/trl}}
8}