Downloads · 30 days
42
12% of all-time downloads
ruggsea/Llama3.1-Instruct-SEP-Chat
Llama3.1-Instruct-SEP-Chat is a text generation model from ruggsea. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a LoRA-finetuned version of meta-llama/Meta-Llama-3.1-8B-instruct on a curated dataset of Stanford Encyclopedia of Philosophy (SEP) conversations. The model is designed to engage in philosophical discuss…
Downloads · 30 days
42
12% of all-time downloads
All-time downloads
352
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
This model is a LoRA-finetuned version of meta-llama/Meta-Llama-3.1-8B-instruct on a curated dataset of Stanford Encyclopedia of Philosophy (SEP) conversations. The model is designed to engage in philosophical discussions with a formal yet accessible tone, leveraging the comprehensive knowledge from SEP.
The model was trained using direct finetuning on the instruct variant of Llama 3, preserving its native chat format and instruction-following capabilities while enhancing its philosophical expertise.
The training data consists of multi-turn conversations derived from the Stanford Encyclopedia of Philosophy, formatted as chat interactions between a user and an assistant. The conversations maintain academic rigor while ensuring accessibility.
The model uses Llama 3's native chat format, which is automatically applied by the tokenizer. No additional tokens or formatting were added during finetuning.
meta-llama/Meta-Llama-3.1-8B-instructThe model can be used with the standard Hugging Face transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "ruggsea/Llama3.1-Instruct-SEP-Chat"
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
# Format your input using the chat template
messages = [
{"role": "user", "content": "What is the categorical imperative?"}
]
# Apply the chat template
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False
)
# Generate response
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.2,
no_repeat_ngram_size=3,
)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(response)
This model is subject to the Meta Llama 3 license terms. Please refer to Meta's licensing for usage requirements and restrictions.