Downloads · 30 days
32
16% of all-time downloads
EryriLabs/llama-3.2-uk-legislation-3b
llama-3.2-uk-legislation-3b is a machine learning model from EryriLabs. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
<figure <img src="UKlegislation.png" alt="Llama 3.2 UK Legislation 3B" width="300" </figure
Downloads · 30 days
32
16% of all-time downloads
All-time downloads
195
Public
Parameters
3.6B
7.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.2 GB · 100%
From the Hugging Face model README
This model is the base version of Meta's Llama 3.2 3B architecture. It has been pretrained on UK legislative texts but has not yet been fine-tuned. It is provided as a foundational model for further development, such as domain-specific applications or fine-tuning for specialised tasks involving UK legislative documents. It was trained as part of a blog series, see the article here
This base model is designed to serve as a starting point for further fine-tuning and development for tasks such as:
This model is not suitable for:
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained("EryriLabs/llama-3.2-uk-legislation-3b", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("EryriLabs/llama-3.2-uk-legislation-3b")
# Sample question
input_text = "What are the main principles of UK legislation?"
# Tokenize and generate response
inputs = tokenizer(input_text, return_tensors="pt").to("cuda")
outputs = model.generate(inputs["input_ids"], max_length=50)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
If you use this model, please cite:
@misc{llama3.2-uk-legislation-3b,
author = {GPT-LABS.AI},
title = {Llama 3.2 UK Legislation 3B},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/EryriLabs/llama-3.2-uk-legislation-3b}
}
For questions or feedback, please visit gpt-labs.ai