Edit model card

samantha-phi-3-4k-mini

samantha-phi-3-4k-mini is a SFT model made with AutoSloth by macadeliccc

Process

  • Original Model: unsloth/Phi-3-mini-4k-instruct

  • Datatset: macadeliccc/opus_samantha

  • Learning Rate: 1.41e-05

  • Steps:

  • Warmup Steps:

  • Per Device Train Batch Size: 2

  • Gradient Accumulation Steps 1

  • Optimizer: paged_adamw_8bit

  • Max Sequence Length: 4096

  • Max Prompt Length: 2048

  • Max Length: 2048

πŸ’» Usage

!pip install -qU transformers

from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline

model = "jlorenz/samantha-phi-3-4k-mini"
tokenizer = AutoTokenizer.from_pretrained(model)

# Example prompt
prompt = "Your example prompt here"

# Generate a response
model = AutoModelForCausalLM.from_pretrained(model)
pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
outputs = pipeline(prompt, max_length=50, num_return_sequences=1)
print(outputs[0]["generated_text"])
Downloads last month
6
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.