Instructions to use Yohhei/bge-multilingual-gemma2-e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yohhei/bge-multilingual-gemma2-e with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Yohhei/bge-multilingual-gemma2-e")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Yohhei/bge-multilingual-gemma2-e") model = AutoModel.from_pretrained("Yohhei/bge-multilingual-gemma2-e", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Yohhei/bge-multilingual-gemma2-e: direct link, hf CLI and curl.
- Browser
- Download file 1.5 kB
-
https://huggingface.co/Yohhei/bge-multilingual-gemma2-e/resolve/main/config.json
- Command line
-
hf download hf://Yohhei/bge-multilingual-gemma2-e/config.json
-
curl -L -o config.json https://huggingface.co/Yohhei/bge-multilingual-gemma2-e/resolve/main/config.json
1.5 kB
| { | |
| "_name_or_path": "BAAI/bge-multilingual-gemma2", | |
| "architectures": [ | |
| "Gemma2Model" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_logit_softcapping": 50.0, | |
| "bos_token_id": 2, | |
| "cache_implementation": "hybrid", | |
| "eos_token_id": 1, | |
| "final_logit_softcapping": 30.0, | |
| "head_dim": 256, | |
| "hidden_act": "gelu_pytorch_tanh", | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "hidden_size": 3584, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 14336, | |
| "max_position_embeddings": 8192, | |
| "model_type": "gemma2", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 42, | |
| "num_key_value_heads": 8, | |
| "pad_token_id": 0, | |
| "quantization_config": { | |
| "batch_size": 1, | |
| "bits": 4, | |
| "block_name_to_quantize": "layers", | |
| "cache_block_outputs": true, | |
| "damp_percent": 0.1, | |
| "dataset": "c4", | |
| "desc_act": false, | |
| "exllama_config": { | |
| "version": 1 | |
| }, | |
| "group_size": 128, | |
| "max_input_length": null, | |
| "model_seqlen": null, | |
| "module_name_preceding_first_block": null, | |
| "modules_in_block_to_quantize": null, | |
| "pad_token_id": null, | |
| "quant_method": "gptq", | |
| "sym": true, | |
| "tokenizer": null, | |
| "true_sequential": true, | |
| "use_cuda_fp16": false, | |
| "use_exllama": false | |
| }, | |
| "query_pre_attn_scalar": 256, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 10000.0, | |
| "sliding_window": 4096, | |
| "sliding_window_size": 4096, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.44.2", | |
| "use_cache": false, | |
| "vocab_size": 256002 | |
| } | |