Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
If you haven't already, you can install the
Transformers.js
JavaScript library from
NPM
using:
npm i @xenova/transformers
You can then use the model to generate text like this:
import { pipeline } from"@xenova/transformers";
// Create a text-generation pipelineconst generator = awaitpipeline('text-generation', 'Xenova/llama2.c-stories15M');
const text = 'Once upon a time,';
const output = awaitgenerator(text);
console.log(output);
// [{ generated_text: "Once upon a time, there was a little girl named Lily. She loved to play outside in" }]const output2 = awaitgenerator(text, { max_new_tokens: 50 });
console.log(output2);
// [{ generated_text: "Once upon a time, there was a little girl named Lily. She loved to play outside in the sunshine. One day, she saw a big, dark cloud in the sky. She knew it was going to rain soon.\nLily ran inside her house" }]
Runs of Xenova llama2.c-stories15M on huggingface.co
2.8K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About llama2.c-stories15M huggingface.co Model
llama2.c-stories15M huggingface.co
llama2.c-stories15M huggingface.co is an AI model on huggingface.co that provides llama2.c-stories15M's model effect (), which can be used instantly with this Xenova llama2.c-stories15M model. huggingface.co supports a free trial of the llama2.c-stories15M model, and also provides paid use of the llama2.c-stories15M. Support call llama2.c-stories15M model through api, including Node.js, Python, http.
llama2.c-stories15M huggingface.co is an online trial and call api platform, which integrates llama2.c-stories15M's modeling effects, including api services, and provides a free online trial of llama2.c-stories15M, you can try llama2.c-stories15M online for free by clicking the link below.
Xenova llama2.c-stories15M online free url in huggingface.co:
llama2.c-stories15M is an open source model from GitHub that offers a free installation service, and any user can find llama2.c-stories15M on GitHub to install. At the same time, huggingface.co provides the effect of llama2.c-stories15M install, users can directly use llama2.c-stories15M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
llama2.c-stories15M install url in huggingface.co: