hojzas / tiny-llama-proj8

huggingface.co
Total runs: 13
24-hour runs: 0
7-day runs: 0
30-day runs: 6
Model's Last Updated: January 18 2024
text-generation

Introduction of tiny-llama-proj8

Model Details of tiny-llama-proj8

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 hojzas tiny-llama-proj8 on huggingface.co

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

More Information About tiny-llama-proj8 huggingface.co Model

More tiny-llama-proj8 license Visit here:

https://choosealicense.com/licenses/other

tiny-llama-proj8 huggingface.co

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

tiny-llama-proj8 huggingface.co Url

https://huggingface.co/hojzas/tiny-llama-proj8

hojzas tiny-llama-proj8 online free

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

hojzas tiny-llama-proj8 online free url in huggingface.co:

https://huggingface.co/hojzas/tiny-llama-proj8

tiny-llama-proj8 install

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

tiny-llama-proj8 install url in huggingface.co:

https://huggingface.co/hojzas/tiny-llama-proj8

Url of tiny-llama-proj8

tiny-llama-proj8 huggingface.co Url

Provider of tiny-llama-proj8 huggingface.co

hojzas
ORGANIZATIONS

Other API from hojzas

huggingface.co

Total runs: 24
Run Growth: 14
Growth Rate: 58.33%
Updated:January 18 2024
huggingface.co

Total runs: 17
Run Growth: 8
Growth Rate: 47.06%
Updated:January 17 2024
huggingface.co

Total runs: 12
Run Growth: 5
Growth Rate: 41.67%
Updated:May 13 2024
huggingface.co

Total runs: 11
Run Growth: -1
Growth Rate: -9.09%
Updated:January 31 2024
huggingface.co

Total runs: 9
Run Growth: 2
Growth Rate: 22.22%
Updated:January 31 2024
huggingface.co

Total runs: 8
Run Growth: -1
Growth Rate: -12.50%
Updated:January 25 2024