BigSalmon / Infill2

huggingface.co
Total runs: 16
24-hour runs: 0
7-day runs: 0
30-day runs: 2
Model's Last Updated: August 28 2022
text-generation

Introduction of Infill2

Model Details of Infill2

from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("BigSalmon/Infill2")

model = AutoModelForCausalLM.from_pretrained("BigSalmon/Infill2")
Demo:
https://huggingface.co/spaces/BigSalmon/FormalInformalConciseWordy
prompt = """few sights are as [blank] new york city as the colorful, flashing signage of its bodegas [sep]"""
input_ids = tokenizer.encode(prompt, return_tensors='pt')
outputs = model.generate(input_ids=input_ids,
                             max_length=10 + len(prompt),
                             temperature=1.0,
                             top_k=50,
                             top_p=0.95,
                             do_sample=True,
                             num_return_sequences=5,
                             early_stopping=True)
for i in range(5):
  print(tokenizer.decode(outputs[i]))

Most likely outputs (Disclaimer: I highly recommend using this over just generating):

prompt = """few sights are as [blank] new york city as the colorful, flashing signage of its bodegas [sep]"""
text = tokenizer.encode(prompt)
myinput, past_key_values = torch.tensor([text]), None
myinput = myinput
myinput= myinput.to(device)
logits, past_key_values = model(myinput, past_key_values = past_key_values, return_dict=False)
logits = logits[0,-1]
probabilities = torch.nn.functional.softmax(logits)
best_logits, best_indices = logits.topk(250)
best_words = [tokenizer.decode([idx.item()]) for idx in best_indices]
text.append(best_indices[0].item())
best_probabilities = probabilities[best_indices].tolist()
words = []   
print(best_words)

Infill / Infilling / Masking / Phrase Masking

his contention [blank] by the evidence [sep] was refuted [answer]

***

few sights are as [blank] new york city as the colorful, flashing signage of its bodegas [sep] synonymous with [answer]

***

when rick won the lottery, all of his distant relatives [blank] his winnings [sep] clamored for [answer]

***

the library’s quiet atmosphere encourages visitors to [blank] in their work [sep] immerse themselves [answer]

***
original: Other film stars to have appeared in Scrubs include Heather Graham, while Friends actor Matthew Perry has guest-starred and directed an episode of the [MASK] star, who recently played the title role in historical blockbuster Alexander, will make a cameo appearance as an unruly Irishman. Its leading star, Zach Braff, has recently [MASK] the big screen in Garden State, which he also directed. Farrell is pencilled in to [MASK] of Crockett in a film version of 1980s police [MASK] Farrell's appearance is said to be a result of his friendship with Zach Braff, who stars in the programme. 
infill: Other film stars to have appeared in Scrubs include Heather Graham, while Friends actor Matthew Perry has guest-starred and directed an episode of the show. The film star, who recently played the title role in historical blockbuster Alexander, will make a cameo appearance as an unruly Irishman. Its leading star, Zach Braff, has recently been seen on the big screen in Garden State, which he also directed. Farrell is pencilled in to play the role of Crockett in a film version of 1980s police drama Miami Vice. Farrell's appearance is said to be a result of his friendship with Zach Braff, who stars in the programme. 

Runs of BigSalmon Infill2 on huggingface.co

16
Total runs
0
24-hour runs
-2
3-day runs
0
7-day runs
2
30-day runs

More Information About Infill2 huggingface.co Model

Infill2 huggingface.co

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

BigSalmon Infill2 online free

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

BigSalmon Infill2 online free url in huggingface.co:

https://huggingface.co/BigSalmon/Infill2

Infill2 install

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

Infill2 install url in huggingface.co:

https://huggingface.co/BigSalmon/Infill2

Url of Infill2

Provider of Infill2 huggingface.co

BigSalmon
ORGANIZATIONS

Other API from BigSalmon

huggingface.co

Total runs: 49
Run Growth: 31
Growth Rate: 64.58%
Updated:November 18 2021
huggingface.co

Total runs: 42
Run Growth: 17
Growth Rate: 41.46%
Updated:June 23 2021
huggingface.co

Total runs: 42
Run Growth: 25
Growth Rate: 60.98%
Updated:November 18 2021
huggingface.co

Total runs: 41
Run Growth: 22
Growth Rate: 55.00%
Updated:June 23 2021
huggingface.co

Total runs: 39
Run Growth: 25
Growth Rate: 58.14%
Updated:February 07 2022
huggingface.co

Total runs: 38
Run Growth: 24
Growth Rate: 58.54%
Updated:February 07 2022
huggingface.co

Total runs: 34
Run Growth: 22
Growth Rate: 64.71%
Updated:June 11 2021
huggingface.co

Total runs: 33
Run Growth: 19
Growth Rate: 57.58%
Updated:September 25 2021
huggingface.co

Total runs: 32
Run Growth: 18
Growth Rate: 54.55%
Updated:October 03 2021
huggingface.co

Total runs: 32
Run Growth: 17
Growth Rate: 50.00%
Updated:November 20 2021
huggingface.co

Total runs: 31
Run Growth: 15
Growth Rate: 45.45%
Updated:September 30 2021
huggingface.co

Total runs: 30
Run Growth: 1
Growth Rate: 3.23%
Updated:November 24 2021
huggingface.co

Total runs: 30
Run Growth: 16
Growth Rate: 51.61%
Updated:June 29 2021
huggingface.co

Total runs: 30
Run Growth: 13
Growth Rate: 40.63%
Updated:November 17 2021
huggingface.co

Total runs: 29
Run Growth: 13
Growth Rate: 44.83%
Updated:November 29 2021
huggingface.co

Total runs: 28
Run Growth: 3
Growth Rate: 10.34%
Updated:November 19 2021
huggingface.co

Total runs: 27
Run Growth: 9
Growth Rate: 32.14%
Updated:December 23 2021
huggingface.co

Total runs: 27
Run Growth: 13
Growth Rate: 46.43%
Updated:June 11 2021
huggingface.co

Total runs: 25
Run Growth: 11
Growth Rate: 42.31%
Updated:November 15 2021
huggingface.co

Total runs: 25
Run Growth: 7
Growth Rate: 26.92%
Updated:November 29 2021
huggingface.co

Total runs: 24
Run Growth: 12
Growth Rate: 48.00%
Updated:June 23 2021
huggingface.co

Total runs: 19
Run Growth: 6
Growth Rate: 30.00%
Updated:November 18 2021
huggingface.co

Total runs: 17
Run Growth: -35
Growth Rate: -205.88%
Updated:May 01 2022
huggingface.co

Total runs: 16
Run Growth: 0
Growth Rate: 0.00%
Updated:March 06 2022
huggingface.co

Total runs: 15
Run Growth: 4
Growth Rate: 26.67%
Updated:January 27 2023