susnato / phi-2

huggingface.co
Total runs: 755
24-hour runs: 0
7-day runs: -230
30-day runs: -127
Model's Last Updated: January 21 2024
text-generation

Introduction of phi-2

Model Details of phi-2

DISCLAIMER : I don't own the weights to this model, this is a property of Microsoft and taken from their official repository : microsoft/phi-2 . The sole purpose of this repository is to use this model through the transformers API or to load and use the model using the HuggingFace transformers library.

Usage

First make sure you have the latest version of the transformers installed.

pip uninstall -y transformers && pip install git+https://github.com/huggingface/transformers

Then use the transformers library to load the model from the library itself

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("susnato/phi-2")
tokenizer = AutoTokenizer.from_pretrained("susnato/phi-2")

inputs = tokenizer('''def print_prime(n):
   """
   Print all primes between 1 and n
   """''', return_tensors="pt", return_attention_mask=False)

outputs = model.generate(**inputs, max_length=200)
text = tokenizer.batch_decode(outputs)[0]
print(text)

Runs of susnato phi-2 on huggingface.co

755
Total runs
0
24-hour runs
13
3-day runs
-230
7-day runs
-127
30-day runs

More Information About phi-2 huggingface.co Model

More phi-2 license Visit here:

https://choosealicense.com/licenses/mit

phi-2 huggingface.co

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

susnato phi-2 online free

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

susnato phi-2 online free url in huggingface.co:

https://huggingface.co/susnato/phi-2

phi-2 install

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

phi-2 install url in huggingface.co:

https://huggingface.co/susnato/phi-2

Url of phi-2

Provider of phi-2 huggingface.co

susnato
ORGANIZATIONS

Other API from susnato

huggingface.co

Total runs: 94.4K
Run Growth: 4.5K
Growth Rate: 4.74%
Updated:October 29 2023
huggingface.co

Total runs: 189
Run Growth: -145
Growth Rate: -76.72%
Updated:November 01 2023
huggingface.co

Total runs: 20
Run Growth: -1
Growth Rate: -5.00%
Updated:November 01 2023
huggingface.co

Total runs: 18
Run Growth: 11
Growth Rate: 61.11%
Updated:January 03 2023
huggingface.co

Total runs: 8
Run Growth: 2
Growth Rate: 25.00%
Updated:June 04 2024
huggingface.co

Total runs: 8
Run Growth: -2
Growth Rate: -25.00%
Updated:June 04 2024
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:December 31 2022