DarwinAnim8or / phi-2-grug-6

huggingface.co
Total runs: 13
24-hour runs: 1
7-day runs: -4
30-day runs: -2
Model's Last Updated: March 09 2024
text-generation

Introduction of phi-2-grug-6

Model Details of phi-2-grug-6

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 DarwinAnim8or phi-2-grug-6 on huggingface.co

13
Total runs
1
24-hour runs
0
3-day runs
-4
7-day runs
-2
30-day runs

More Information About phi-2-grug-6 huggingface.co Model

More phi-2-grug-6 license Visit here:

https://choosealicense.com/licenses/other

phi-2-grug-6 huggingface.co

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

DarwinAnim8or phi-2-grug-6 online free

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

DarwinAnim8or phi-2-grug-6 online free url in huggingface.co:

https://huggingface.co/DarwinAnim8or/phi-2-grug-6

phi-2-grug-6 install

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

phi-2-grug-6 install url in huggingface.co:

https://huggingface.co/DarwinAnim8or/phi-2-grug-6

Url of phi-2-grug-6

Provider of phi-2-grug-6 huggingface.co

DarwinAnim8or
ORGANIZATIONS

Other API from DarwinAnim8or