Instructions to use Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated") model = AutoModelForCausalLM.from_pretrained("Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated
- SGLang
How to use Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated with Docker Model Runner:
docker model run hf.co/Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated
Model Card for Model ID
VersatiLlama-Llama-3.2-3B-Instruct-Abliterated
Model Description
Small but Smart
Fine-Tuned on Vast dataset of Conversations
Able to Generate Human like text with high performance within its size.
It is Very Versatile when compared for it's size and Parameters and offers capability almost as good as Llama 3.1 8B Instruct
Feel free to Check it out!!
Check the quantized model here: Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated-Imatrix-GGUF
[This model was trained for 5hrs on GPU T4 15gb vram]
- Developed by: Meta AI
- Fine-Tuned by: Devarui379
- Model type: Transformers
- Language(s) (NLP): English
- License: cc-by-4.0
Model Sources [optional]
base model:meta-llama/Llama-3.2-3B-Instruct
- Repository: Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated
- Demo: Use LM Studio with the Quantized version
Uses
Use desired System prompt when using in LM Studio The optimal chat template seems to be Jinja but feel free to test it out as you want!
Technical Specifications
Model Architecture and Objective
Llama 3.2
Hardware
NVIDIA TESLA T4 GPU 15GB VRAM
- Downloads last month
- 12
Model tree for Devarui379/VersatiLlama-Llama-3.2-3B-Instruct-Abliterated
Base model
meta-llama/Llama-3.2-3B-Instruct