base_model:Corianas/Tiny_Testgate_mode:cheap_embed# one of "hidden", "cheap_embed", or "random"dtype:bfloat16# output dtype (float32, float16, or bfloat16)## (optional)# experts_per_token: 2experts:-source_model:Corianas/Tiny_Testpositive_prompts:-"↨once upon a time"## (optional)# negative_prompts:# - "This is a prompt expert_model_1 should not be used for"-source_model:Corianas/TinyTask-minipaca# ... and so onpositive_prompts:-"↨please"
💻 Usage
!pip install -qU transformers bitsandbytes accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "Corianas/Tiny-moe"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
)
messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
Runs of Corianas Tiny-Moe on huggingface.co
302
Total runs
46
24-hour runs
52
3-day runs
87
7-day runs
87
30-day runs
More Information About Tiny-Moe huggingface.co Model
Tiny-Moe huggingface.co is an AI model on huggingface.co that provides Tiny-Moe's model effect (), which can be used instantly with this Corianas Tiny-Moe model. huggingface.co supports a free trial of the Tiny-Moe model, and also provides paid use of the Tiny-Moe. Support call Tiny-Moe model through api, including Node.js, Python, http.
Tiny-Moe huggingface.co is an online trial and call api platform, which integrates Tiny-Moe's modeling effects, including api services, and provides a free online trial of Tiny-Moe, you can try Tiny-Moe online for free by clicking the link below.
Corianas Tiny-Moe online free url in huggingface.co:
Tiny-Moe is an open source model from GitHub that offers a free installation service, and any user can find Tiny-Moe on GitHub to install. At the same time, huggingface.co provides the effect of Tiny-Moe install, users can directly use Tiny-Moe installed effect in huggingface.co for debugging and trial. It also supports api for free installation.