初始化项目,由ModelHub XC社区提供模型
Model: maddes8cht/VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-gguf Source: Original Platform
This commit is contained in:
49
.gitattributes
vendored
Normal file
49
.gitattributes
vendored
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
VMware-open-llama-0.3T-7B-instruct-dolly-hhrlhf-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
132
README.md
Normal file
132
README.md
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
---
|
||||||
|
license: apache-2.0
|
||||||
|
datasets:
|
||||||
|
- mosaicml/dolly_hhrlhf
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
library_name: transformers
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
---
|
||||||
|
|
||||||
|
> ⚠️ **ARCHIVED / LEGACY MODEL NOTICE**
|
||||||
|
> This repository is part of a legacy collection quantized around 2023. To manage storage quotas and maintain active community projects, some rarely used quantization formats (e.g., Q2_K, Q3_K, Q4_1, Q5_1) have been permanently removed.
|
||||||
|
>
|
||||||
|
> Only the most popular and stable formats (**Q4_0, Q4_K_M, Q5_K_M, Q6_K, and Q8_0**) remain available.
|
||||||
|
>
|
||||||
|
> 💡 **Looking for something modern?**
|
||||||
|
> If you are starting a new project, we highly recommend using newer architectures (like Llama 3, Mistral, or Qwen) provided by official maintainers or active community members (e.g., `Bartowski`, `TheBloke` legacy files, or official organization handles).
|
||||||
|
>
|
||||||
|
> ⚠️ *This repository is no longer actively maintained. Existing files are provided "as is" for archival and legacy hardware purposes.*
|
||||||
|
|
||||||
|
[]()
|
||||||
|
|
||||||
|
I'm constantly enhancing these model descriptions to provide you with the most relevant and comprehensive information
|
||||||
|
|
||||||
|
# open-llama-0.3T-7B-instruct-dolly-hhrlhf - GGUF
|
||||||
|
- Model creator: [VMware](https://huggingface.co/VMware)
|
||||||
|
- Original model: [open-llama-0.3T-7B-instruct-dolly-hhrlhf](https://huggingface.co/VMware/open-llama-0.3T-7B-instruct-dolly-hhrlhf)
|
||||||
|
|
||||||
|
OpenLlama is a free reimplementation of the original Llama Model which is licensed under Apache 2 license.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# About GGUF format
|
||||||
|
|
||||||
|
`gguf` is the current file format used by the [`ggml`](https://github.com/ggerganov/ggml) library.
|
||||||
|
A growing list of Software is using it and can therefore use this model.
|
||||||
|
The core project making use of the ggml library is the [llama.cpp](https://github.com/ggerganov/llama.cpp) project by Georgi Gerganov
|
||||||
|
|
||||||
|
# Quantization variants
|
||||||
|
|
||||||
|
There is a bunch of quantized files available to cater to your specific needs. Here's how to choose the best option for you:
|
||||||
|
|
||||||
|
# Legacy quants
|
||||||
|
|
||||||
|
Q4_0, Q4_1, Q5_0, Q5_1 and Q8 are `legacy` quantization types.
|
||||||
|
Nevertheless, they are fully supported, as there are several circumstances that cause certain model not to be compatible with the modern K-quants.
|
||||||
|
## Note:
|
||||||
|
Now there's a new option to use K-quants even for previously 'incompatible' models, although this involves some fallback solution that makes them not *real* K-quants. More details can be found in affected model descriptions.
|
||||||
|
(This mainly refers to Falcon 7b and Starcoder models)
|
||||||
|
|
||||||
|
# K-quants
|
||||||
|
|
||||||
|
K-quants are designed with the idea that different levels of quantization in specific parts of the model can optimize performance, file size, and memory load.
|
||||||
|
So, if possible, use K-quants.
|
||||||
|
With a Q6_K, you'll likely find it challenging to discern a quality difference from the original model - ask your model two times the same question and you may encounter bigger quality differences.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Original Model Card:
|
||||||
|
# VMware/open-llama-0.3T-7B-instruct-dolly-hhrlhf
|
||||||
|
|
||||||
|
Fully Open Source, Commerically viable.
|
||||||
|
|
||||||
|
The instruction dataset, [mosaicml/dolly_hhrlhf](https://huggingface.co/datasets/mosaicml/dolly_hhrlhf) is under cc-by-sa-3.0, and the Language Model ([openlm-research/open_llama_7b_preview_300bt](https://huggingface.co/openlm-research/open_llama_7b_preview_300bt/tree/main/open_llama_7b_preview_300bt_transformers_weights)) is under apache-2.0 License.
|
||||||
|
|
||||||
|
## Use in Transformers
|
||||||
|
|
||||||
|
Please load the tokenizer with 'add_bos_token = True' parameter as the underlying OpenLLaMa model and this model were trained with a BOS token.
|
||||||
|
|
||||||
|
```
|
||||||
|
import os
|
||||||
|
import torch
|
||||||
|
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||||
|
|
||||||
|
model_name = 'VMware/open-llama-0.3T-7B-instruct-dolly-hhrlhf'
|
||||||
|
|
||||||
|
|
||||||
|
tokenizer = AutoTokenizer.from_pretrained(model_name, add_bos_token = True)
|
||||||
|
|
||||||
|
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype= torch.float16, device_map = 'sequential')
|
||||||
|
|
||||||
|
prompt_template = "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{instruction}\n\n### Response:"
|
||||||
|
|
||||||
|
prompt= 'how do I bake a cake?'
|
||||||
|
|
||||||
|
|
||||||
|
inputt = prompt_template.format(instruction= prompt)
|
||||||
|
input_ids = tokenizer(inputt, return_tensors="pt").input_ids.to("cuda")
|
||||||
|
|
||||||
|
output1 = model.generate(input_ids, max_length=512)
|
||||||
|
input_length = input_ids.shape[1]
|
||||||
|
output1 = output1[:, input_length:]
|
||||||
|
output= tokenizer.decode(output1[0])
|
||||||
|
|
||||||
|
print(output)
|
||||||
|
|
||||||
|
'''
|
||||||
|
Baking a cake is a simple process. You will need to prepare a cake mixture, then bake it in the oven. You can add various ingredients to the cake mixture, such as fruit, nuts, or spices, to make it flavorful. Baking a cake can be fun, as it creates a delicious dessert!</s>
|
||||||
|
|
||||||
|
'''
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Drawbacks
|
||||||
|
<ul>
|
||||||
|
<li>The model was trained on a partially trained Open-LLaMA checkpoint. (300B tokens).
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
## Evaluation
|
||||||
|
|
||||||
|
<B>TODO</B>
|
||||||
|
|
||||||
|
***End of original Model File***
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
## Please consider to support my work
|
||||||
|
**Coming Soon:** I'm in the process of launching a sponsorship/crowdfunding campaign for my work. I'm evaluating Kickstarter, Patreon, or the new GitHub Sponsors platform, and I am hoping for some support and contribution to the continued availability of these kind of models. Your support will enable me to provide even more valuable resources and maintain the models you rely on. Your patience and ongoing support are greatly appreciated as I work to make this page an even more valuable resource for the community.
|
||||||
|
|
||||||
|
<center>
|
||||||
|
|
||||||
|
[](https://maddes8cht.github.io)
|
||||||
|
[](https://stackexchange.com/users/26485911)
|
||||||
|
[](https://github.com/maddes8cht)
|
||||||
|
[](https://huggingface.co/maddes8cht)
|
||||||
|
[](https://twitter.com/maddes1966)
|
||||||
|
|
||||||
|
</center>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b50fca4a420905187fb64c545d1674e8b9ec3460eb6d9363a3534de27779db6d
|
||||||
|
size 3825841920
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:de24319e5611df753f54e1804391a74cb0e8cf1f922fb41de1f2e8d72836013d
|
||||||
|
size 4081039104
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c1ba35c40ac803f5a23b23511ae553000b9857b751d1d47faa9bc84dd040bc3d
|
||||||
|
size 4783191808
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5b73de2ad569c60f2664ee9ab4ded82c06305c05bd68a126f8b299eb105d0c09
|
||||||
|
size 5529229056
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:00ddfc354e6eb9fd312cd7013cb0455f6f9061d25ad3beb9ba5fb2f5d9d0a1b7
|
||||||
|
size 7161124608
|
||||||
Reference in New Issue
Block a user