ibm / PowerMoE-3b

huggingface.co
Total runs: 15.3K
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: September 25 2024
text-generation

Introduction of PowerMoE-3b

Model Details of PowerMoE-3b

Model Summary

PowerMoE-3B is a 3B sparse Mixture-of-Experts (sMoE) language model trained with the Power learning rate scheduler. It sparsely activates 800M parameters for each token. It is trained on a wide range of open-source and synthetic datasets with permissive licenses. PowerMoE-3B has shown promising results compared to other dense models with 2x activate parameters across various benchmarks, including natural language multi-choices, code generation, and math reasoning.

Usage
Generation

This is a simple example of how to use PowerMoE-3b model.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # or "cpu"
model_path = "ibm/PowerMoE-3b"
tokenizer = AutoTokenizer.from_pretrained(model_path)
# drop device_map if running on CPU
model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
model.eval()
# change input text as desired
chat = [
    { "role": "user", "content": "Write a code to find the maximum value in a list of numbers." },
]
chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
# tokenize the text
input_tokens = tokenizer(chat, return_tensors="pt")
# transfer tokenized inputs to the device
for i in input_tokens:
    input_tokens[i] = input_tokens[i].to(device)
# generate output tokens
output = model.generate(**input_tokens, max_new_tokens=100)
# decode output tokens into text
output = tokenizer.batch_decode(output)
# loop over the batch to print, in this example the batch size is 1
for i in output:
    print(i)

Runs of ibm PowerMoE-3b on huggingface.co

15.3K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About PowerMoE-3b huggingface.co Model

More PowerMoE-3b license Visit here:

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

PowerMoE-3b huggingface.co

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

PowerMoE-3b huggingface.co Url

https://huggingface.co/ibm/PowerMoE-3b

ibm PowerMoE-3b online free

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

ibm PowerMoE-3b online free url in huggingface.co:

https://huggingface.co/ibm/PowerMoE-3b

PowerMoE-3b install

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

PowerMoE-3b install url in huggingface.co:

https://huggingface.co/ibm/PowerMoE-3b

Url of PowerMoE-3b

PowerMoE-3b huggingface.co Url

Provider of PowerMoE-3b huggingface.co

ibm
ORGANIZATIONS

Other API from ibm

huggingface.co

Total runs: 28.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 12 2024
huggingface.co

Total runs: 17.7K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 17 2024
huggingface.co

Total runs: 11.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 16 2024
huggingface.co

Total runs: 11.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:March 05 2024
huggingface.co

Total runs: 2.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 17 2024
huggingface.co

Total runs: 344
Run Growth: 0
Growth Rate: 0.00%
Updated:December 21 2022
huggingface.co

Total runs: 157
Run Growth: 0
Growth Rate: 0.00%
Updated:December 28 2023
huggingface.co

Total runs: 103
Run Growth: 0
Growth Rate: 0.00%
Updated:October 12 2022
huggingface.co

Total runs: 90
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2023
huggingface.co

Total runs: 57
Run Growth: 0
Growth Rate: 0.00%
Updated:March 05 2024
huggingface.co

Total runs: 56
Run Growth: 0
Growth Rate: 0.00%
Updated:October 09 2024
huggingface.co

Total runs: 23
Run Growth: 0
Growth Rate: 0.00%
Updated:September 15 2023
huggingface.co

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:September 15 2023
huggingface.co

Total runs: 16
Run Growth: 0
Growth Rate: 0.00%
Updated:September 15 2023