Downloads · 30 days
22
16% of all-time downloads
sausheong/lexsg
lexsg is a text generation model from sausheong. Use it when you need the model to write or continue text. It is set up for ollama. The card lists the license as llama3.1.
A specialized AI assistant trained on Singapore statutes and subsidiary legislation, built on the Llama 3.1 8B Instruct architecture and optimized for legal text generation.
Downloads · 30 days
22
16% of all-time downloads
All-time downloads
136
Public
Repo size
4.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf4.9 GB · 100%
From the Hugging Face model README
A specialized AI assistant trained on Singapore statutes and subsidiary legislation, built on the Llama 3.1 8B Instruct architecture and optimized for legal text generation.
LexSG is a fine-tuned and quantized language model designed specifically to assist with Singapore legal matters. It provides accurate, contextual responses about Singapore's legal framework and helps users understand complex legal provisions.
This model is intended for educational and informational purposes to help users understand Singapore legal provisions and statutes. It can be used to:
The model can be integrated into legal research tools, educational platforms, or chatbot applications focused on Singapore law.
Users should be made aware of the risks, biases and limitations of the model. Always consult with qualified legal professionals for specific legal matters.
The model file llama-3.1-8b-lexsg-q4_k_m.gguf is formatted in GGUF and can be used in any llama.cpp compatible library or application.
Specifically it has been tested in Ollama Ollama, with the given Modelfile
To use this with Ollama:
Build the model from the Modelfile:
ollama create lexsg -f Modelfile
or even simpler just do this:
./setup_ollama_model.sh
Run the model:
ollama run lexsg
Start asking questions about Singapore law:
> What does Section 73 of the Companies Act cover?
> Explain the requirements for setting up a private limited company in Singapore
> What are the penalties for non-compliance with PDPA?
The model was fine-tuned on Singapore legal documents and statutes, including but not limited to:
The following are the inference parameters in the model file. You can change it accordingly.
Chang Sau Sheong
For more details about Singapore legislation, refer to Singapore Statutes Online
Legal Disclaimer: This model is designed to provide general information about Singapore law and should not be considered as legal advice. For specific legal matters, always consult with a qualified legal professional licensed to practice in Singapore.