This model is a fine-tuned version of the Llama 3.2 1B model, specifically trained to analyze privacy policies and terms of service. It can determine if clauses are fair or unfair and identify specific privacy practices mentioned in the text.
The model was fine-tuned on the CodeHima/app350_llama_format dataset, which contains annotated conversations about privacy policy clauses. The fine-tuning process used the following parameters:
You can use this model to analyze privacy policy clauses or terms of service. Here's an example of how to use it:
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("CodeHima/Llama_TOS")
4model = AutoModelForCausalLM.from_pretrained("CodeHima/Llama_TOS")
5
6prompt = "Analyze this privacy policy clause: 'We collect your email address for marketing purposes.'"
7inputs = tokenizer(prompt, return_tensors="pt")
8outputs = model.generate(**inputs, max_new_tokens=100)
9print(tokenizer.decode(outputs[0]))