Instructions to use VishnuPJ/MalayaLLM_7B_Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VishnuPJ/MalayaLLM_7B_Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VishnuPJ/MalayaLLM_7B_Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("VishnuPJ/MalayaLLM_7B_Base") model = AutoModelForCausalLM.from_pretrained("VishnuPJ/MalayaLLM_7B_Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VishnuPJ/MalayaLLM_7B_Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VishnuPJ/MalayaLLM_7B_Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VishnuPJ/MalayaLLM_7B_Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/VishnuPJ/MalayaLLM_7B_Base
- SGLang
How to use VishnuPJ/MalayaLLM_7B_Base 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 "VishnuPJ/MalayaLLM_7B_Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VishnuPJ/MalayaLLM_7B_Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "VishnuPJ/MalayaLLM_7B_Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VishnuPJ/MalayaLLM_7B_Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use VishnuPJ/MalayaLLM_7B_Base with Docker Model Runner:
docker model run hf.co/VishnuPJ/MalayaLLM_7B_Base
Commit History
-
Update README.md
Verified signature3de582c -
Update README.md
Verified signaturedf13eb5 -
Update README.md
Verified signaturef332658 -
Update README.md
Verified signature8b52af7 -
Update README.md
Verified signature241c33f -
Update README.md
Verified signatureb570717 -
Update README.md
Verified signature715074a -
Update README.md
Verified signature# MalayaLLM [മലയാളം/Malayalam] <img src="https://cdn-uploads.huggingface.co/production/uploads/64e65800e44b2668a56f9731/bipVMulaNJ9um46ecYpR4.png" alt="Baby MalayaLLM" width="300" height="200"> # MalayaLLM_7B_Base This is an attempt to construct a Language Model (LLM) focused on **generative AI for Malayalam language **. While several LLMs are proficient in supporting multiple languages, including Malayalam, enhancing their performance for specific tasks such as content generation and question answering specifically in Malayalam can be achieved through dedicated training on a Malayalam dataset. In pursuit of this, I've undertaken the continuous pre-training of the LLAMA2 model using a comprehensive Malayalam dataset. The model is currently in its early stages, and ongoing training and fine-tuning with a more comprehensive dataset are necessary to enhance its performance. I will consistently provide updated revisions to the model. # Github Repo: For comprehensive insights into model…dfcbe17 -
Create README.md
Verified signature<img src="https://cdn-uploads.huggingface.co/production/uploads/64e65800e44b2668a56f9731/bipVMulaNJ9um46ecYpR4.png" alt="Baby MalayaLLM" width="300" height="auto"> # MalayaLLM_7B_Base [ മലയാളം/Malayalam] This is an attempt to construct a Language Model (LLM) focused on **generative AI for Malayalam language**. While several LLMs are proficient in supporting multiple languages, including Malayalam, enhancing their performance for specific tasks such as content generation and question answering specifically in Malayalam can be achieved through dedicated training on a Malayalam dataset. In pursuit of this, I've undertaken the continuous pre-training of the LLAMA2 model using a comprehensive Malayalam dataset. The model is currently in its early stages, and ongoing training and fine-tuning with a more comprehensive dataset are necessary to enhance its performance. I will consistently provide updated revisions to the model. ## Github Repo: For comprehensive insights into model training,…6e42ee2
-
Upload tokenizer
Verified signature5a12e8d -
Upload LlamaForCausalLM
Verified signature4076444 -
initial commit
Verified signature94e24d0