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