base_model:Corianas/Tiny_Testgate_mode:random# 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:-""## (optional)# negative_prompts:# - "This is a prompt expert_model_1 should not be used for"-source_model:Corianas/TinyTask-minipacapositive_prompts:-""
💻 Usage
!pip install -qU transformers bitsandbytes accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "Corianas/Tiny-moe-rand"
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-rand on huggingface.co
5
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
2
30-day runs
More Information About Tiny-moe-rand huggingface.co Model
Tiny-moe-rand huggingface.co is an AI model on huggingface.co that provides Tiny-moe-rand's model effect (), which can be used instantly with this Corianas Tiny-moe-rand model. huggingface.co supports a free trial of the Tiny-moe-rand model, and also provides paid use of the Tiny-moe-rand. Support call Tiny-moe-rand model through api, including Node.js, Python, http.
Tiny-moe-rand huggingface.co is an online trial and call api platform, which integrates Tiny-moe-rand's modeling effects, including api services, and provides a free online trial of Tiny-moe-rand, you can try Tiny-moe-rand online for free by clicking the link below.
Corianas Tiny-moe-rand online free url in huggingface.co:
Tiny-moe-rand is an open source model from GitHub that offers a free installation service, and any user can find Tiny-moe-rand on GitHub to install. At the same time, huggingface.co provides the effect of Tiny-moe-rand install, users can directly use Tiny-moe-rand installed effect in huggingface.co for debugging and trial. It also supports api for free installation.