The following is an example model and its evaluation.
from mltools.dmx import pipeline
pipe = pipeline(
task="text-generation",
model="d-matrix/gpt2",
revision="gpt2-xl", # see above for other variants
dmx_config="BASELINE", # see above for other variants
)
results = pipe.evaluate(
metric="d-matrix/dmx_perplexity",
dataset="wikitext",
dataset_version="wikitext-2-raw-v1",
)
gpt2 huggingface.co is an AI model on huggingface.co that provides gpt2's model effect (), which can be used instantly with this d-matrix gpt2 model. huggingface.co supports a free trial of the gpt2 model, and also provides paid use of the gpt2. Support call gpt2 model through api, including Node.js, Python, http.
gpt2 huggingface.co is an online trial and call api platform, which integrates gpt2's modeling effects, including api services, and provides a free online trial of gpt2, you can try gpt2 online for free by clicking the link below.
gpt2 is an open source model from GitHub that offers a free installation service, and any user can find gpt2 on GitHub to install. At the same time, huggingface.co provides the effect of gpt2 install, users can directly use gpt2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.