Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
microsoft
/
phi-2
like
3.25k
Follow
Microsoft
5,420
Text Generation
Transformers
Safetensors
English
phi
nlp
code
text-generation-inference
Inference Endpoints
License:
mit
Model card
Files
Files and versions
Community
131
Train
Deploy
Use this model
refs/pr/130
phi-2
5 contributors
History:
36 commits
Khaliq88
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2") model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2")
897de04
verified
5 months ago
.gitattributes
Safe
1.52 kB
initial commit
12 months ago
0_build-and-push-nonprod-cache.txt
Safe
88.2 kB
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2") model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2")
5 months ago
CODE_OF_CONDUCT.md
Safe
444 Bytes
Uploading license and readme files (#1)
12 months ago
LICENSE
Safe
1.08 kB
Update LICENSE
10 months ago
NOTICE.md
Safe
1.77 kB
updating notice.md (#66)
11 months ago
README.md
Safe
7.8 kB
Update README.md
7 months ago
SECURITY.md
Safe
2.66 kB
Uploading license and readme files (#1)
12 months ago
added_tokens.json
Safe
1.08 kB
Upload tokenizer
12 months ago
config.json
Safe
735 Bytes
fix(config): Removes auto_map since it will not be used anymore.
7 months ago
generation_config.json
Safe
124 Bytes
Add EOS token to the generation config (#101)
10 months ago
merges.txt
Safe
456 kB
Upload tokenizer
12 months ago
model-00001-of-00002.safetensors
Safe
5 GB
LFS
Upload 8 files
11 months ago
model-00002-of-00002.safetensors
Safe
564 MB
LFS
Upload 8 files
11 months ago
model.safetensors.index.json
Safe
35.7 kB
Upload 8 files
11 months ago
special_tokens_map.json
Safe
99 Bytes
Upload tokenizer
12 months ago
tokenizer.json
Safe
2.11 MB
Upload tokenizer
12 months ago
tokenizer_config.json
Safe
7.34 kB
Upload tokenizer
12 months ago
vocab.json
Safe
798 kB
Upload tokenizer
12 months ago