nitky / Megac4ai-command-r-plus

huggingface.co
Total runs: 8
24-hour runs: 0
7-day runs: 1
30-day runs: -3
Model's Last Updated: April 30 2024
text-generation

Introduction of Megac4ai-command-r-plus

Model Details of Megac4ai-command-r-plus

Megac4ai-command-r-plus

GGUF version is here.

๐Ÿšจ This model is created using the special mergekit that supports c4ai-command-r-plus.

This is a 160b frankenmerge model created by interleaving layers of CohereForAI/c4ai-command-r-plus with itself using mergekit.

Output comparison
Test Case Details

Condition: temperature=0.3

<|START_OF_TURN_TOKEN|><|USER_TOKEN|>ใƒ†ใ‚ฃใƒ : ใ‚„ใ‚ใ€่ชฟๅญใฏใฉใ†๏ผŸ
ใ‚ญใƒ : ใ„ใ‚ใ„ใ‚ใ‚„ใ‚ใ†ใจใ—ใฆใŸใ‚“ใ ใ‘ใฉใ€ใพใŸๅ…ˆๅปถใฐใ—ใซใ—ใกใ‚ƒใฃใŸใ‚ˆใ€‚
ใƒ†ใ‚ฃใƒ : ไฝ•ใ‚’ใ—ใ‚ˆใ†ใจใ—ใฆใ„ใŸใฎ๏ผŸ
ใ‚ญใƒ : ๅคงๅญฆใฎ่ชฒ้กŒใ ใ‚ˆใ€‚ใฉใ†ใซใ‚‚ใ‚„ใ‚‹ๆฐ—ใŒๅ‡บใชใใฆใญใ€‚
ใƒ†ใ‚ฃใƒ : ้›†ไธญใงใใชใ„ใชใ‚‰ใ€ใƒใƒขใƒ‰ใƒผใƒญใƒปใƒ†ใ‚ฏใƒ‹ใƒƒใ‚ฏใ‚’ใ™ใ‚‹ใจใ„ใ„ใ‚ˆใ€‚
ใ‚ญใƒ : ไฝ•ใใ‚Œ๏ผŸ
ใƒ†ใ‚ฃใƒ : 25ๅˆ†ไฝœๆฅญใ—ใฆใ€5ๅˆ†ไผ‘ๆ†ฉใ™ใ‚‹ใฎใ‚’็นฐใ‚Š่ฟ”ใ™ใ‚“ใ ใ‚ˆใ€‚ไธ€ๅ›žใ‚ใŸใ‚Šใฎไฝœๆฅญๆ™‚้–“ใŒ็Ÿญใใฆ้›†ไธญใงใใ‚‹ใ‚ˆใ€‚
ใ‚ญใƒ : ใ†ใƒผใ‚“ใ€้›†ไธญใฃใฆใ„ใ†ใ‚ใ‘ใ˜ใ‚ƒใชใ„ใ‚“ใ ใ‚ˆใญ
ใƒ†ใ‚ฃใƒ : ใ˜ใ‚ƒใ‚1ๆ—ฅใซ5ๅˆ†ใ ใ‘ใงใ„ใ„ใ‹ใ‚‰ๆœบใง่ชฒ้กŒใ‚’ใ™ใ‚‹ใฃใฆใ„ใ†ใฎใฏใฉใ†๏ผŸ
ใ‚ญใƒ : 5ๅˆ†ใ˜ใ‚ƒไฝ•ใ‚‚ใงใใชใใชใ„๏ผŸ
ใƒ†ใ‚ฃใƒ : ็Ÿญใ„ๆ™‚้–“ใงใ‚‚ใ„ใ„ใ‹ใ‚‰ๆœบใงไฝœๆฅญใ™ใ‚‹ใฃใฆใ„ใ†ใฎใŒใƒใ‚คใƒณใƒˆใชใ‚“ใ ใ‚ˆใ€‚ใ‚€ใ—ใ‚ใ‚‚ใฃใจใ‚„ใ‚ŠใŸใ„ใ€ใใ‚‰ใ„ใงๆญขใ‚ใฆใŠใใจๆฏŽๆ—ฅ็ถšใใ‚‚ใฃใจ้•ทใ„ๆ™‚้–“ใงใใ‚‹ใ‚ˆใ†ใซใชใ‚‹ใ‚ˆใ€‚
ใ‚ญใƒ : ็ขบใ‹ใซใใ‚Œใชใ‚‰ใงใใ‚‹ใ‹ใ‚‚ใ€‚ใ‚ใ‚ŠใŒใจใ†๏ผ
Q: ใ‚ญใƒ ใฏไฝ•ใ‚’ใ‚„ใฃใฆใฟใ‚ˆใ†ใจใ—ใฆใ„ใพใ™ใ‹๏ผŸใพใŸไฝ•ๆ•…ใใ‚Œใ‚’ใ‚„ใ‚ใ†ใจใ—ใฆใ„ใพใ™ใ‹๏ผŸ<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>

This task is included in elyza/ELYZA-tasks-100 .

Output Example
Model Output
CohereForAI/c4ai-command-r-plus ใ‚ญใƒ ใฏๅคงๅญฆใฎ่ชฒ้กŒใ‚’ใ‚„ใ‚ใ†ใจใ—ใฆใ„ใพใ™ใ€‚ใ—ใ‹ใ—ใ€ใ‚„ใ‚‹ๆฐ—ใŒ่ตทใใšใ€ๅ…ˆๅปถใฐใ—ใซใ—ใฆใ—ใพใฃใŸใ‚ˆใ†ใงใ™ใ€‚
nitky/Megac4ai-command-r-plus ใ‚ญใƒ ใฏๅคงๅญฆใฎ่ชฒ้กŒใ‚’ใ‚„ใ‚ใ†ใจใ—ใฆใ„ใพใ™ใ€‚ใ‚„ใ‚‹ๆฐ—ใŒๅ‡บใšใ€้›†ไธญใ—ใฆไฝœๆฅญใ™ใ‚‹ใ“ใจใŒใงใใชใ„ใŸใ‚ใ€ใƒ†ใ‚ฃใƒ ใซใ‚ขใƒ‰ใƒใ‚คใ‚นใ‚’ๆฑ‚ใ‚ใฆใ„ใพใ™ใ€‚ใƒ†ใ‚ฃใƒ ใŒๆๆกˆใ—ใŸใƒใƒขใƒ‰ใƒผใƒญใƒปใƒ†ใ‚ฏใƒ‹ใƒƒใ‚ฏใ‚„ใ€1ๆ—ฅใซ5ๅˆ†ใ ใ‘ๆœบใง่ชฒ้กŒใ‚’ใ™ใ‚‹ใจใ„ใ†ๆ–นๆณ•ใ‚’่ฉฆใ™ใ“ใจใงใ€่ชฒ้กŒใซๅ–ใ‚Š็ต„ใ‚€็ฟ’ๆ…ฃใ‚’่บซใซใคใ‘ใ‚ˆใ†ใจใ—ใฆใ„ใพใ™ใ€‚
Test environment

This model was tested using text-generation-webui . I use preset min_p and Null preset with temperature=0.3 for Generation.

Usage

Please install transformers from the source repository that includes the necessary changes for this model.

# pip install 'git+https://github.com/huggingface/transformers.git'
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "nitky/megac4ai-command-r-plus"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

# Format message with the command-r-plus chat template
messages = [{"role": "user", "content": "Hello, how are you?"}]
input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
## <BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Hello, how are you?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>

gen_tokens = model.generate(
    input_ids, 
    max_new_tokens=100, 
    do_sample=True, 
    temperature=0.3,
    )

gen_text = tokenizer.decode(gen_tokens[0])
print(gen_text)
Quantized model through bitsandbytes, 4-bit precision
# pip install 'git+https://github.com/huggingface/transformers.git' bitsandbytes accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig

bnb_config = BitsAndBytesConfig(load_in_4bit=True)

model_id = "nitky/megac4ai-command-r-plus"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config)

# Format message with the command-r-plus chat template
messages = [{"role": "user", "content": "Hello, how are you?"}]
input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
## <BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Hello, how are you?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>

gen_tokens = model.generate(
    input_ids, 
    max_new_tokens=100, 
    do_sample=True, 
    temperature=0.3,
    )

gen_text = tokenizer.decode(gen_tokens[0])
print(gen_text)
Merge Details
Merge Method

This model was merged using the passthrough merge method.

Models Merged

The following models were included in the merge:

Configuration

The following YAML configuration was used to produce this model:

dtype: float16
merge_method: passthrough
slices:
- sources:
  - layer_range: [0, 20]
    model: CohereForAI/c4ai-command-r-plus
- sources:
  - layer_range: [11, 31]
    model: CohereForAI/c4ai-command-r-plus
- sources:
  - layer_range: [22, 42]
    model: CohereForAI/c4ai-command-r-plus
- sources:
  - layer_range: [33, 53]
    model: CohereForAI/c4ai-command-r-plus
- sources:
  - layer_range: [44, 64]
    model: CohereForAI/c4ai-command-r-plus

Runs of nitky Megac4ai-command-r-plus on huggingface.co

8
Total runs
0
24-hour runs
1
3-day runs
1
7-day runs
-3
30-day runs

More Information About Megac4ai-command-r-plus huggingface.co Model

More Megac4ai-command-r-plus license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

Megac4ai-command-r-plus huggingface.co

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

Megac4ai-command-r-plus huggingface.co Url

https://huggingface.co/nitky/Megac4ai-command-r-plus

nitky Megac4ai-command-r-plus online free

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

nitky Megac4ai-command-r-plus online free url in huggingface.co:

https://huggingface.co/nitky/Megac4ai-command-r-plus

Megac4ai-command-r-plus install

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

Megac4ai-command-r-plus install url in huggingface.co:

https://huggingface.co/nitky/Megac4ai-command-r-plus

Url of Megac4ai-command-r-plus

Megac4ai-command-r-plus huggingface.co Url

Provider of Megac4ai-command-r-plus huggingface.co

nitky
ORGANIZATIONS

Other API from nitky