crumb / FLAN-OPT-1.3b-LoRA

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

Introduction of FLAN-OPT-1.3b-LoRA

Model Details of FLAN-OPT-1.3b-LoRA

FLAN-OPT-1.3b-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-1.3b 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 4.2m 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.77 and an eval ppl of 4.19.

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-1.3b-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_k=4,
        penalty_alpha=0.6
    )
print("\n".join(tokenizer.decode(outputs[0]).split("\n")[:prompt.count("\n")+1]))
# Cessna is a type of aircraft. Space is beyond the reach of Cessna. The answer is no.

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

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

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

FLAN-OPT-1.3b-LoRA huggingface.co

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

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

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

crumb FLAN-OPT-1.3b-LoRA online free

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

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

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

FLAN-OPT-1.3b-LoRA install

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

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

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

Url of FLAN-OPT-1.3b-LoRA

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

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

crumb
ORGANIZATIONS

Other API from crumb

huggingface.co

Total runs: 2.1K
Run Growth: -604
Growth Rate: -28.38%
Updated:March 10 2024
huggingface.co

Total runs: 368
Run Growth: 290
Growth Rate: 78.80%
Updated:March 18 2024
huggingface.co

Total runs: 212
Run Growth: 206
Growth Rate: 97.17%
Updated:March 02 2024
huggingface.co

Total runs: 165
Run Growth: 34
Growth Rate: 20.61%
Updated:January 05 2024
huggingface.co

Total runs: 106
Run Growth: 70
Growth Rate: 66.04%
Updated:July 21 2023
huggingface.co

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

Total runs: 35
Run Growth: 28
Growth Rate: 77.78%
Updated:November 25 2023
huggingface.co

Total runs: 32
Run Growth: 15
Growth Rate: 46.88%
Updated:February 13 2024
huggingface.co

Total runs: 31
Run Growth: 13
Growth Rate: 41.94%
Updated:May 06 2023
huggingface.co

Total runs: 30
Run Growth: 18
Growth Rate: 62.07%
Updated:August 27 2024
huggingface.co

Total runs: 20
Run Growth: 11
Growth Rate: 55.00%
Updated:January 07 2024
huggingface.co

Total runs: 20
Run Growth: 13
Growth Rate: 61.90%
Updated:January 04 2024
huggingface.co

Total runs: 17
Run Growth: 9
Growth Rate: 52.94%
Updated:October 12 2023
huggingface.co

Total runs: 16
Run Growth: 6
Growth Rate: 42.86%
Updated:October 11 2023
huggingface.co

Total runs: 14
Run Growth: 4
Growth Rate: 28.57%
Updated:November 25 2023
huggingface.co

Total runs: 14
Run Growth: 7
Growth Rate: 50.00%
Updated:November 25 2023
huggingface.co

Total runs: 14
Run Growth: 5
Growth Rate: 35.71%
Updated:November 30 2023
huggingface.co

Total runs: 14
Run Growth: 7
Growth Rate: 50.00%
Updated:October 15 2023
huggingface.co

Total runs: 13
Run Growth: 3
Growth Rate: 23.08%
Updated:November 30 2023
huggingface.co

Total runs: 13
Run Growth: 7
Growth Rate: 63.64%
Updated:March 28 2023
huggingface.co

Total runs: 12
Run Growth: 4
Growth Rate: 30.77%
Updated:September 27 2023
huggingface.co

Total runs: 11
Run Growth: 4
Growth Rate: 33.33%
Updated:October 19 2023
huggingface.co

Total runs: 11
Run Growth: 5
Growth Rate: 45.45%
Updated:October 16 2023
huggingface.co

Total runs: 10
Run Growth: 6
Growth Rate: 60.00%
Updated:November 25 2023