Downloads · 30 days
23
9% of all-time downloads
prithivMLmods/Stablelm-3b-abliterated
Stablelm-3b-abliterated is a text generation model from prithivMLmods. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Stablelm-3b-abliterated is a multilingual large language model (LLM) designed for text-based generative AI applications. It is a 3-billion parameter model optimized for dialogue-based interactions, including summariza…
Downloads · 30 days
23
9% of all-time downloads
All-time downloads
254
Public
Parameters
2.8B
5.6 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors5.6 GB · 100%
From the Hugging Face model README
Stablelm-3b-abliterated is a multilingual large language model (LLM) designed for text-based generative AI applications. It is a 3-billion parameter model optimized for dialogue-based interactions, including summarization, retrieval-augmented generation, and creative writing. This model is based on the
StableLmForCausalLMarchitecture and is instruction-tuned to handle a variety of conversational and agentic tasks.
Ensure you have the latest version of transformers installed:
pip install --upgrade transformers
You can load and use the model via the transformers library:
import torch
from transformers import pipeline
model_id = "stabilityai/Stablelm-3b-abliterated"
pipe = pipeline(
"text-generation",
model=model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "system", "content": "You are a scientific assistant who provides precise, well-researched answers."},
{"role": "user", "content": "Explain quantum entanglement in simple terms."},
]
outputs = pipe(
messages,
max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])