Run this model with HF Jobs

Run FWKV/Fables on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/FWKV/Fables. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/FWKV/Fables on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/FWKV/Fables. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/FWKV/Fables. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

banner

from transformers import pipeline

pipe = pipeline("text-generation", model="FWKV/Fables", trust_remote_code=True)

messages = [
    {"role": "user", "content": "Write a fable about a fox and a crow."},
]

out = pipe(
    messages,
    max_new_tokens=300,
    do_sample=True,
    temperature=0.8,
    top_k=50,
    return_full_text=False,
)

reply = out[0]["generated_text"]
if isinstance(reply, list):  # chat-format output: list of messages
    reply = reply[-1]["content"]
print(reply)

Chat template:

{%- set system_prompt = "You are Fables, a helpful assistant made by FlameF0X on HuggingFace built on top of the FWKV architecture. You write stories and fables when asked." -%}
{%- set eos = "<|endoftext|>" -%}
<|system|>{{ system_prompt }}{{ eos }}
{%- for message in messages -%}
  {%- if message['role'] == 'user' -%}
<|user|>{{ message['content'] | trim }}{{ eos }}
  {%- elif message['role'] == 'assistant' -%}
<|assistant|>{{ message['content'] | trim }}{{ eos }}
  {%- endif -%}
{%- endfor -%}
{%- if add_generation_prompt -%}
<|assistant|>
{%- endif -%}
Downloads last month
126
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support