crumb / FLAN-OPT-6.7b-LoRA

huggingface.co
Total runs: 20
24-hour runs: 0
7-day runs: -1
30-day runs: 13
Model's Last Updated: March 02 2023

Introduction of FLAN-OPT-6.7b-LoRA

Model Details of FLAN-OPT-6.7b-LoRA

FLAN-OPT-6.7b-LoRA

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI.

This model is facebook/opt-6.7b finetuned with low-rank adapters ( https://arxiv.org/abs/2106.09685 ) on the FLAN datasets ( https://arxiv.org/pdf/2210.11416.pdf ).

Low-rank adapters (r=16) finetuned over 1.6m new tokens of a FLAN task mixture, with the start of each example cut off if it was too large to fit within a 256 token context.

The model reaches a train ppl of 4.36 and an eval ppl of 4.32.

Inference Example (Chain-of-Thought prompt):
# %pip install -qq transformers git+https://github.com/huggingface/peft accelerate bitsandbytes
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM, AutoTokenizer
peft_model_id = "crumb/FLAN-OPT-6.7b-LoRA"

config = PeftConfig.from_pretrained(peft_model_id)
model = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, load_in_8bit=True, low_cpu_mem_usage=True, device_map='auto')
model = PeftModel.from_pretrained(model, peft_model_id)
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)

import torch
prompt = """
Q: Answer the following yes/no question by reasoning step-by-step. Could a dandelion suffer from hepatitis?
A: Hepatitis only affects organisms with livers. Dandelions don’t have a liver. The answer is no.

Q: Answer the following yes/no question by reasoning step-by-step. Can you write a whole Haiku in a single tweet?
A: A haiku is a japanese three-line poem. That is short enough to fit in 280 characters. The answer is yes.

Q: Answer the following yes/no question by reasoning step-by-step. Can you reach space with a Cessna?
A: 
""".strip()
inputs = tokenizer([prompt], return_tensors='pt')

with torch.autocast("cuda", dtype=torch.float16):
    outputs = model.generate(
        input_ids=inputs.input_ids.cuda(),
        attention_mask=inputs.attention_mask.cuda(),
        max_new_tokens=32,
        top_p=0.95,
        temperature=0.5,
        do_sample=True
    )
print("\n".join(tokenizer.decode(outputs[0]).split("\n")[:prompt.count("\n")+1]))
# A Cessna is a small plane. A small plane can't get into space. The answer is no.

Runs of crumb FLAN-OPT-6.7b-LoRA on huggingface.co

20
Total runs
0
24-hour runs
2
3-day runs
-1
7-day runs
13
30-day runs

More Information About FLAN-OPT-6.7b-LoRA huggingface.co Model

FLAN-OPT-6.7b-LoRA huggingface.co

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

FLAN-OPT-6.7b-LoRA huggingface.co Url

https://huggingface.co/crumb/FLAN-OPT-6.7b-LoRA

crumb FLAN-OPT-6.7b-LoRA online free

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

crumb FLAN-OPT-6.7b-LoRA online free url in huggingface.co:

https://huggingface.co/crumb/FLAN-OPT-6.7b-LoRA

FLAN-OPT-6.7b-LoRA install

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

FLAN-OPT-6.7b-LoRA install url in huggingface.co:

https://huggingface.co/crumb/FLAN-OPT-6.7b-LoRA

Url of FLAN-OPT-6.7b-LoRA

FLAN-OPT-6.7b-LoRA huggingface.co Url

Provider of FLAN-OPT-6.7b-LoRA huggingface.co

crumb
ORGANIZATIONS

Other API from crumb

huggingface.co

Total runs: 2.2K
Run Growth: -801
Growth Rate: -36.90%
Updated:March 10 2024
huggingface.co

Total runs: 346
Run Growth: 119
Growth Rate: 34.39%
Updated:March 18 2024
huggingface.co

Total runs: 237
Run Growth: 147
Growth Rate: 62.03%
Updated:March 02 2024
huggingface.co

Total runs: 171
Run Growth: 11
Growth Rate: 6.43%
Updated:January 05 2024
huggingface.co

Total runs: 74
Run Growth: 2
Growth Rate: 2.70%
Updated:July 21 2023
huggingface.co

Total runs: 73
Run Growth: 0
Growth Rate: 0.00%
Updated:August 15 2024
huggingface.co

Total runs: 52
Run Growth: 26
Growth Rate: 52.00%
Updated:August 27 2024
huggingface.co

Total runs: 33
Run Growth: 6
Growth Rate: 18.18%
Updated:February 13 2024
huggingface.co

Total runs: 28
Run Growth: 10
Growth Rate: 35.71%
Updated:January 07 2024
huggingface.co

Total runs: 26
Run Growth: -7
Growth Rate: -26.92%
Updated:May 06 2023
huggingface.co

Total runs: 22
Run Growth: 10
Growth Rate: 45.45%
Updated:November 25 2023
huggingface.co

Total runs: 21
Run Growth: 10
Growth Rate: 47.62%
Updated:October 11 2023
huggingface.co

Total runs: 20
Run Growth: 8
Growth Rate: 40.00%
Updated:November 30 2023
huggingface.co

Total runs: 19
Run Growth: -14
Growth Rate: -73.68%
Updated:November 25 2023
huggingface.co

Total runs: 17
Run Growth: 5
Growth Rate: 29.41%
Updated:October 19 2023
huggingface.co

Total runs: 17
Run Growth: 8
Growth Rate: 47.06%
Updated:October 15 2023
huggingface.co

Total runs: 15
Run Growth: 2
Growth Rate: 13.33%
Updated:November 30 2023
huggingface.co

Total runs: 15
Run Growth: 8
Growth Rate: 53.33%
Updated:October 16 2023
huggingface.co

Total runs: 14
Run Growth: 5
Growth Rate: 35.71%
Updated:October 17 2023
huggingface.co

Total runs: 14
Run Growth: 2
Growth Rate: 14.29%
Updated:September 27 2023
huggingface.co

Total runs: 14
Run Growth: 1
Growth Rate: 7.14%
Updated:October 12 2023
huggingface.co

Total runs: 14
Run Growth: -5
Growth Rate: -35.71%
Updated:January 04 2024
huggingface.co

Total runs: 13
Run Growth: 4
Growth Rate: 30.77%
Updated:October 16 2023
huggingface.co

Total runs: 13
Run Growth: -1
Growth Rate: -7.69%
Updated:November 25 2023
huggingface.co

Total runs: 13
Run Growth: 6
Growth Rate: 46.15%
Updated:March 28 2023