from transformers import AutoTokenizer
import transformers
import torch
model = "aloobun/TinyAiroboros-2.2.1"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
prompt = "Write a short story about a dystopian society."
sequences = pipeline(
f'[INST] {prompt} [/INST]',
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
max_length=1024,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
Runs of aloobun TinyAiroboros-2.2.1 on huggingface.co
37
Total runs
1
24-hour runs
1
3-day runs
-4
7-day runs
19
30-day runs
More Information About TinyAiroboros-2.2.1 huggingface.co Model
TinyAiroboros-2.2.1 huggingface.co
TinyAiroboros-2.2.1 huggingface.co is an AI model on huggingface.co that provides TinyAiroboros-2.2.1's model effect (), which can be used instantly with this aloobun TinyAiroboros-2.2.1 model. huggingface.co supports a free trial of the TinyAiroboros-2.2.1 model, and also provides paid use of the TinyAiroboros-2.2.1. Support call TinyAiroboros-2.2.1 model through api, including Node.js, Python, http.
TinyAiroboros-2.2.1 huggingface.co is an online trial and call api platform, which integrates TinyAiroboros-2.2.1's modeling effects, including api services, and provides a free online trial of TinyAiroboros-2.2.1, you can try TinyAiroboros-2.2.1 online for free by clicking the link below.
aloobun TinyAiroboros-2.2.1 online free url in huggingface.co:
TinyAiroboros-2.2.1 is an open source model from GitHub that offers a free installation service, and any user can find TinyAiroboros-2.2.1 on GitHub to install. At the same time, huggingface.co provides the effect of TinyAiroboros-2.2.1 install, users can directly use TinyAiroboros-2.2.1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
TinyAiroboros-2.2.1 install url in huggingface.co: