Downloads · 30 days
17
10% of all-time downloads
akahana/indo-psikologi-sft
indo-psikologi-sft is a machine learning model from akahana. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
17
10% of all-time downloads
All-time downloads
175
Public
Parameters
596M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
from vllm import LLM
from vllm.sampling_params import SamplingParams
model_name = "akahana/indo-psikologi-sft"
sampling_params = SamplingParams(max_tokens=256, temperature=0.0)
llm = LLM(
model=model_name,
trust_remote_code=True,
max_model_len=2048,
max_num_batched_tokens=2048,
tensor_parallel_size=2, # if you have multigpus
)
prompt = "### psikologi ### \n Hai aku lagi terpuruk hari ini"
messages = [
{
"role": "user",
"content": prompt,
}
]
outputs = llm.chat(messages, sampling_params=sampling_params)
output = outputs[0].outputs[0].text.strip()
messages.append({"role":"assistant","content":output})
output