ModelHub XC 3b2ffddd8e 初始化项目,由ModelHub XC社区提供模型
Model: glides/llama-eap
Source: Original Platform
2026-05-25 16:43:37 +08:00

base_model, datasets, language, license, tags, model-index, pipeline_tag
base_model datasets language license tags model-index pipeline_tag
meta-llama/Meta-Llama-3.1-8B-Instruct
nroggendorff/eap
en
mit
trl
sft
art
code
adam
mistral
name results
eap
text-generation

Edgar Allen Poe LLM

EAP is a language model fine-tuned on the EAP dataset using Supervised Fine-Tuning (SFT) and Teacher Reinforced Learning (TRL) techniques.

Features

  • Utilizes SFT and TRL techniques for improved performance
  • Supports English language

Usage

To use the LLM, you can load the model using the Hugging Face Transformers library:

from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
import torch

bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_use_double_quant=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16
)

model_id = "nroggendorff/llama-eap"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config)

prompt = "[INST] Write a poem about tomatoes in the style of Poe.[/INST]"
inputs = tokenizer(prompt, return_tensors="pt")

outputs = model.generate(**inputs)

generated_text = tokenizer.batch_decode(outputs)[0]
print(generated_text)

License

This project is licensed under the MIT License.

Description
Model synced from source: glides/llama-eap
Readme 2.6 MiB