This is a Phi-2 model trained on
ArtifactAI/arxiv-physics-instruct-30k
. This model is for research purposes only and
should not be used in production settings
.
Find below some example scripts on how to use the model in
transformers
:
Using the Pytorch model
from huggingface_hub import notebook_login
from datasets import load_dataset, Dataset
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
model = "ArtifactAI/phi-2-arxiv-physics-instruct"
model = AutoModelForCausalLM.from_pretrained(base_model, trust_remote_code= True)
tokenizer = AutoTokenizer.from_pretrained(base_model, trust_remote_code=True)
defgenerate(prompt):
inputs = tokenizer(f'''Below is an instruction that describes a task. Write a response that appropriately completes the request If you are adding additional white spaces, stop writing".\n\n### Instruction:\n{prompt}.\n\n### Response:\n ''', return_tensors="pt", return_attention_mask=False)
streamer = TextStreamer(tokenizer, skip_prompt= True)
_ = model.generate(**inputs, streamer=streamer, max_new_tokens=500)
generate("what is an atom?")
Training Data
The model was trained on
ArtifactAI/arxiv-physics-instruct-50k
, a dataset of question/answer pairs. Questions are generated using the t5-base model, while the answers are generated using the GPT-3.5-turbo model.
phi-2-arxiv-physics-instruct-GGUF huggingface.co is an AI model on huggingface.co that provides phi-2-arxiv-physics-instruct-GGUF's model effect (), which can be used instantly with this afrideva phi-2-arxiv-physics-instruct-GGUF model. huggingface.co supports a free trial of the phi-2-arxiv-physics-instruct-GGUF model, and also provides paid use of the phi-2-arxiv-physics-instruct-GGUF. Support call phi-2-arxiv-physics-instruct-GGUF model through api, including Node.js, Python, http.
phi-2-arxiv-physics-instruct-GGUF huggingface.co is an online trial and call api platform, which integrates phi-2-arxiv-physics-instruct-GGUF's modeling effects, including api services, and provides a free online trial of phi-2-arxiv-physics-instruct-GGUF, you can try phi-2-arxiv-physics-instruct-GGUF online for free by clicking the link below.
afrideva phi-2-arxiv-physics-instruct-GGUF online free url in huggingface.co:
phi-2-arxiv-physics-instruct-GGUF is an open source model from GitHub that offers a free installation service, and any user can find phi-2-arxiv-physics-instruct-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of phi-2-arxiv-physics-instruct-GGUF install, users can directly use phi-2-arxiv-physics-instruct-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
phi-2-arxiv-physics-instruct-GGUF install url in huggingface.co: