Question Answering
Transformers
Safetensors
Malay
English
gemma2
text-generation
llama
translation
summarization
tokenizer
text-generation-inference
Instructions to use uzlm/Malay-Gemma-2B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use uzlm/Malay-Gemma-2B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="uzlm/Malay-Gemma-2B-Instruct")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("uzlm/Malay-Gemma-2B-Instruct") model = AutoModelForCausalLM.from_pretrained("uzlm/Malay-Gemma-2B-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from uzlm/Malay-Gemma-2B-Instruct: direct link, hf CLI and curl.
- Browser
- Download file 187 Bytes
-
https://huggingface.co/uzlm/Malay-Gemma-2B-Instruct/resolve/main/generation_config.json
- Command line
-
hf download hf://uzlm/Malay-Gemma-2B-Instruct/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/uzlm/Malay-Gemma-2B-Instruct/resolve/main/generation_config.json
187 Bytes
| { | |
| "_from_model_config": true, | |
| "bos_token_id": 2, | |
| "cache_implementation": "hybrid", | |
| "eos_token_id": [ | |
| 1, | |
| 107 | |
| ], | |
| "pad_token_id": 0, | |
| "transformers_version": "4.52.1" | |
| } | |