It's so funny that the huggingface hub lets you do this
model
parameters
embedding dimensions
meta-llama/Llama-2-70b-hf
70b
8192
crumb/gzip-openhermes
1*
242,831
*the huggingface pretrained model saving api requires at least one parameter, which is set to "1" in this model.
multiprocessing is suuuper weird so make sure you dont have the variables "p" or "calculate_ncd_row" in your code anywhere..
Usage
# Requirements
%pip install -qq transformers
# Download Modelfrom transformers import AutoModel
model = AutoModel.from_pretrained("crumb/gzip-openhermes", trust_remote_code=True)
# Prune model
model.config.update({
"corpus": model.config.corpus[:1024]
})
model.dimensionality() # 1024# Inference
model(["this is a test sequence"], num_procs=16).shape # [1, 1024]# Finetuningfrom tqdm.auto import tqdm
new_data = ["i love GZIP! it is my favorite!", "i HATE transformers!"]
normalized_data = [
model.normalize(i) for i in tqdm(new_data)
]
print(f"Input: '{new_data[0]}'\nTransformed: '{normalized_data[0]}'")
model.config.update({
"corpus": model.config.corpus + normalized_data
})
model.dimensionality()
model.save_pretrained("my-finetuned-gzip-model")
config:
normalize = True,
normalized_corpus = True,
reduction = False,
reduced_dimension = 0,
remove_stop_words = True,
stop_words = stopwords.words('english'),
corpus = [], # openhermes instructions + outputs, i think having [instructions, outputs, instructions+outputs] would be better but its literally 3x slower also i dont care
Runs of crumb gzip-openhermes on huggingface.co
18
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
9
30-day runs
More Information About gzip-openhermes huggingface.co Model
gzip-openhermes huggingface.co
gzip-openhermes huggingface.co is an AI model on huggingface.co that provides gzip-openhermes's model effect (), which can be used instantly with this crumb gzip-openhermes model. huggingface.co supports a free trial of the gzip-openhermes model, and also provides paid use of the gzip-openhermes. Support call gzip-openhermes model through api, including Node.js, Python, http.
gzip-openhermes huggingface.co is an online trial and call api platform, which integrates gzip-openhermes's modeling effects, including api services, and provides a free online trial of gzip-openhermes, you can try gzip-openhermes online for free by clicking the link below.
crumb gzip-openhermes online free url in huggingface.co:
gzip-openhermes is an open source model from GitHub that offers a free installation service, and any user can find gzip-openhermes on GitHub to install. At the same time, huggingface.co provides the effect of gzip-openhermes install, users can directly use gzip-openhermes installed effect in huggingface.co for debugging and trial. It also supports api for free installation.