mahiatlinux / BabyHercules-8x150M

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

Introduction of BabyHercules-8x150M

Model Details of BabyHercules-8x150M

BabyHercules-8x150M

BabyHercules-8x150M is a Mixture of Experts (MoE) made with the following models using LazyMergekit :

🧩 Configuration
base_model: mahiatlinux/BabyHercules-150M
experts:
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "chat"
    - "assistant"
    - "tell me"
    - "explain"
    - "I want"
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "code"
    - "python"
    - "javascript"
    - "programming"
    - "algorithm"
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "storywriting"
    - "write"
    - "scene"
    - "story"
    - "character"
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "reason"
    - "math"
    - "mathematics"
    - "solve"
    - "count"
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "science"
    - "physics"
    - "chemistry"
    - "biology"
    - "experiment"
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "history"
    - "events"
    - "past"
    - "culture"
    - "timeline"
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "art"
    - "painting"
    - "sculpture"
    - "music"
    - "creativity"
  - source_model: mahiatlinux/BabyHercules-150M
    positive_prompts:
    - "business"
    - "finance"
    - "economics"
    - "marketing"
    - "strategy"
💻 Usage
!pip install -qU transformers bitsandbytes accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "mahiatlinux/BabyHercules-8x150M"

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 mahiatlinux BabyHercules-8x150M on huggingface.co

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

More Information About BabyHercules-8x150M huggingface.co Model

More BabyHercules-8x150M license Visit here:

https://choosealicense.com/licenses/apache-2.0

BabyHercules-8x150M huggingface.co

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

BabyHercules-8x150M huggingface.co Url

https://huggingface.co/mahiatlinux/BabyHercules-8x150M

mahiatlinux BabyHercules-8x150M online free

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

mahiatlinux BabyHercules-8x150M online free url in huggingface.co:

https://huggingface.co/mahiatlinux/BabyHercules-8x150M

BabyHercules-8x150M install

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

BabyHercules-8x150M install url in huggingface.co:

https://huggingface.co/mahiatlinux/BabyHercules-8x150M

Url of BabyHercules-8x150M

BabyHercules-8x150M huggingface.co Url

Provider of BabyHercules-8x150M huggingface.co

mahiatlinux
ORGANIZATIONS

Other API from mahiatlinux

huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:March 18 2024
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:August 03 2024
huggingface.co

Total runs: 1
Run Growth: -2
Growth Rate: -200.00%
Updated:March 18 2024