ucalyptus / prem-1B-ORPO

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: May 11 2024
text-generation

Introduction of prem-1B-ORPO

Model Details of prem-1B-ORPO

Model Trained Using AutoTrain

This model was trained using AutoTrain. For more information, please visit AutoTrain .

Usage


from transformers import AutoModelForCausalLM, AutoTokenizer

model_path = "PATH_TO_THIS_REPO"

tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    device_map="auto",
    torch_dtype='auto'
).eval()

# Prompt content: "hi"
messages = [
    {"role": "user", "content": "hi"}
]

input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
output_ids = model.generate(input_ids.to('cuda'))
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)

# Model response: "Hello! How can I assist you today?"
print(response)

Runs of ucalyptus prem-1B-ORPO on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About prem-1B-ORPO huggingface.co Model

More prem-1B-ORPO license Visit here:

https://choosealicense.com/licenses/other

prem-1B-ORPO huggingface.co

prem-1B-ORPO huggingface.co is an AI model on huggingface.co that provides prem-1B-ORPO's model effect (), which can be used instantly with this ucalyptus prem-1B-ORPO model. huggingface.co supports a free trial of the prem-1B-ORPO model, and also provides paid use of the prem-1B-ORPO. Support call prem-1B-ORPO model through api, including Node.js, Python, http.

ucalyptus prem-1B-ORPO online free

prem-1B-ORPO huggingface.co is an online trial and call api platform, which integrates prem-1B-ORPO's modeling effects, including api services, and provides a free online trial of prem-1B-ORPO, you can try prem-1B-ORPO online for free by clicking the link below.

ucalyptus prem-1B-ORPO online free url in huggingface.co:

https://huggingface.co/ucalyptus/prem-1B-ORPO

prem-1B-ORPO install

prem-1B-ORPO is an open source model from GitHub that offers a free installation service, and any user can find prem-1B-ORPO on GitHub to install. At the same time, huggingface.co provides the effect of prem-1B-ORPO install, users can directly use prem-1B-ORPO installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

prem-1B-ORPO install url in huggingface.co:

https://huggingface.co/ucalyptus/prem-1B-ORPO

Url of prem-1B-ORPO

prem-1B-ORPO huggingface.co Url

Provider of prem-1B-ORPO huggingface.co

ucalyptus
ORGANIZATIONS

Other API from ucalyptus