Views
No views yet

{prompt}
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|---|---|---|---|---|---|
| mixtral_34bx2_moe_60b.Q2_K.gguf | Q2_K | 2 | 20.55 GB | 23.05 GB | smallest, significant quality loss - not recommended for most purposes |
| mixtral_34bx2_moe_60b.Q3_K_M.gguf | Q3_K_M | 3 | 26.79 GB | 29.29 GB | very small, high quality loss |
| mixtral_34bx2_moe_60b.Q4_0.gguf | Q4_0 | 4 | 34.33 GB | 36.83 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
| mixtral_34bx2_moe_60b.Q4_K_M.gguf | Q4_K_M | 4 | 34.39 GB | 36.89 GB | medium, balanced quality - recommended |
| mixtral_34bx2_moe_60b.Q5_0.gguf | Q5_0 | 5 | 41.88 GB | 44.38 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
| mixtral_34bx2_moe_60b.Q5_K_M.gguf | Q5_K_M | 5 | 41.91 GB | 44.41 GB | large, very low quality loss - recommended |
| mixtral_34bx2_moe_60b.Q6_K.gguf | Q6_K | 6 | 49.89 GB | 52.39 GB | very large, extremely low quality loss |
| mixtral_34bx2_moe_60b.Q8_0.gguf | Q8_0 | 8 | 64.62 GB | 67.12 GB | very large, extremely low quality loss - not recommended |
mixtral_34bx2_moe_60b.Q6_K.gguf-split-amixtral_34bx2_moe_60b.Q6_K.gguf-split-bmixtral_34bx2_moe_60b.Q8_0.gguf-split-amixtral_34bx2_moe_60b.Q8_0.gguf-split-bcat mixtral_34bx2_moe_60b.Q6_K.gguf-split-* > mixtral_34bx2_moe_60b.Q6_K.gguf && rm mixtral_34bx2_moe_60b.Q6_K.gguf-split-*
cat mixtral_34bx2_moe_60b.Q8_0.gguf-split-* > mixtral_34bx2_moe_60b.Q8_0.gguf && rm mixtral_34bx2_moe_60b.Q8_0.gguf-split-*COPY /B mixtral_34bx2_moe_60b.Q6_K.gguf-split-a + mixtral_34bx2_moe_60b.Q6_K.gguf-split-b mixtral_34bx2_moe_60b.Q6_K.gguf
del mixtral_34bx2_moe_60b.Q6_K.gguf-split-a mixtral_34bx2_moe_60b.Q6_K.gguf-split-b
COPY /B mixtral_34bx2_moe_60b.Q8_0.gguf-split-a + mixtral_34bx2_moe_60b.Q8_0.gguf-split-b mixtral_34bx2_moe_60b.Q8_0.gguf
del mixtral_34bx2_moe_60b.Q8_0.gguf-split-a mixtral_34bx2_moe_60b.Q8_0.gguf-split-btext-generation-webuihuggingface-hub Python library:pip3 install huggingface-hubhuggingface-cli download TheBloke/Mixtral_34Bx2_MoE_60B-GGUF mixtral_34bx2_moe_60b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks Falsehuggingface-cli download TheBloke/Mixtral_34Bx2_MoE_60B-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'huggingface-cli, please see: HF -> Hub Python Library -> Download files -> Download from the CLI.hf_transfer:pip3 install hf_transferHF_HUB_ENABLE_HF_TRANSFER to 1:HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Mixtral_34Bx2_MoE_60B-GGUF mixtral_34bx2_moe_60b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks Falseset HF_HUB_ENABLE_HF_TRANSFER=1 before the download command.llama.cpp commandllama.cpp from commit d0cee0d or later../main -ngl 35 -m mixtral_34bx2_moe_60b.Q4_K_M.gguf --color -c 200000 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "{prompt}"-ngl 32 to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.-c 200000 to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically. Note that longer sequence lengths require much more resources, so you may need to reduce this value.-p <PROMPT> argument with -i -instext-generation-webui1# Base ctransformers with no GPU acceleration
2pip install llama-cpp-python
3# With NVidia CUDA acceleration
4CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
5# Or with OpenBLAS acceleration
6CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
7# Or with CLBLast acceleration
8CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
9# Or with AMD ROCm GPU acceleration (Linux only)
10CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
11# Or with Metal GPU acceleration for macOS systems only
12CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
13
14# In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
15$env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
16pip install llama-cpp-python1from llama_cpp import Llama
2
3# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
4llm = Llama(
5 model_path="./mixtral_34bx2_moe_60b.Q4_K_M.gguf", # Download the model file first
6 n_ctx=200000, # The max sequence length to use - note that longer sequence lengths require much more resources
7 n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
8 n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
9)
10
11# Simple inference example
12output = llm(
13 "{prompt}", # Prompt
14 max_tokens=512, # Generate up to 512 tokens
15 stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
16 echo=True # Whether to echo the prompt
17)
18
19# Chat Completion API
20
21llm = Llama(model_path="./mixtral_34bx2_moe_60b.Q4_K_M.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
22llm.create_chat_completion(
23 messages = [
24 {"role": "system", "content": "You are a story writing assistant."},
25 {
26 "role": "user",
27 "content": "Write a story about llamas."
28 }
29 ]
30)import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
import math
## v2 models
model_path = "cloudyu/Mixtral_34Bx2_MoE_60B"
tokenizer = AutoTokenizer.from_pretrained(model_path, use_default_system_prompt=False)
model = AutoModelForCausalLM.from_pretrained(
model_path, torch_dtype=torch.float32, device_map='auto',local_files_only=False, load_in_4bit=True
)
print(model)
prompt = input("please input prompt:")
while len(prompt) > 0:
input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to("cuda")
generation_output = model.generate(
input_ids=input_ids, max_new_tokens=500,repetition_penalty=1.2
)
print(tokenizer.decode(generation_output[0]))
prompt = input("please input prompt:")import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
import math
## v2 models
model_path = "cloudyu/Mixtral_34Bx2_MoE_60B"
tokenizer = AutoTokenizer.from_pretrained(model_path, use_default_system_prompt=False)
model = AutoModelForCausalLM.from_pretrained(
model_path, torch_dtype=torch.bfloat16, device_map='cpu'
)
print(model)
prompt = input("please input prompt:")
while len(prompt) > 0:
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
generation_output = model.generate(
input_ids=input_ids, max_new_tokens=500,repetition_penalty=1.2
)
print(tokenizer.decode(generation_output[0]))
prompt = input("please input prompt:")
please input prompt:write a story about yosemite
write a story about yosemite national park
Yosemite National Park is located in the Sierra Nevada Mountains of California, USA. It was established on October 1st, 1890 and covers an area of approximately 747,956 acres (302,687 hectares). The park boasts some of America's most iconic natural wonders such as Yosemite Valley, Half Dome, El Capitan, Bridalveil Fall, Tuolumne Meadows, Glacier Point, Mariposa Grove, and many more breathtaking landscapes that attract millions of visitors each year.
The history of Yosemite dates back to over seven million years ago when glaciers carved out its stunning granite cliffs and valleys. Native American tribes like Miwok and Paiute have lived here for thousands of years before European explorers arrived during the mid-nineteenth century. In fact, it was John Muir - one of America’s greatest conservationists who helped establish this region as a protected wilderness area by advocating for its preservation through his writings and activism.
Today, Yosemite offers various recreational activities including hiking, rock climbing, camping, fishing, horseback riding, wildlife watching, photography, and winter sports like skiing and snowshoeing. Visitors can also enjoy ranger programs, guided tours, educational exhibits at visitor centers, or simply take time to appreciate nature while strolling along scenic trails surrounded by towering sequoia trees, cascading waterfalls, and crystal clear lakes.
In addition to preserving these awe-inspiring vistas, Yosemite plays a crucial role in protecting numerous plant and animal species found within its boundaries. Some notable inhabitants include black bears, mountain lions, mule deer, coyotes, bobcats, golden eagles, peregrine falcons, bighorn sheep, and several types of fish native to the Merced River which runs through the heart of the valley.
As we continue our journey into the future, let us remember the importance of safeguarding places like Yosemite so they may remain pristine sanctuaries where both humans and animals alike can thrive together amidst unspoiled beauty.</s>
please input prompt:李开复是谁?
李开复是谁?
他是一个在人工智能领域有着卓越贡献的科学家,也是一位成功的企业家。他的名字与谷歌、微软等科技巨头紧密相连,他是创新工场的创始人之一,更是无数创业者心中的偶像和导师。然而,除了这些耀眼的光环之外,李开复还有着怎样的故事呢?让我们一起来揭秘这位传奇人物的人生历程吧!</s>