File size: 1,063 Bytes
80a0143
 
 
 
 
 
 
 
 
 
 
58a19d8
 
80a0143
4ad1da4
bb3a696
4ad1da4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80a0143
 
 
 
 
 
 
 
 
58a19d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
base_model: unsloth/llama-3-8b-bnb-4bit
tags:
- text-generation-inference
- transformers
- unsloth
- llama
- trl
license: apache-2.0
language:
- en
datasets:
- nisaar/Lawyer_GPT_India
---
# Usage
```python
from llama_cpp import Llama

llm = Llama.from_pretrained(
    repo_id="krishkpatil/legal_llm",
    filename="unsloth.Q4_K_M.gguf",  # Replace with the actual GGUF filename if different
)

response = llm.create_chat_completion(
    messages = [
        {
            "role": "user",
            "content": "Explain the concept of judicial review in India."
        }
    ]
)

print(response['choices'][0]['message']['content'])

```

# Uploaded  model

- **Developed by:** krishkpatil
- **License:** apache-2.0
- **Finetuned from model :** unsloth/llama-3-8b-bnb-4bit

This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.

[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)