Translation
Transformers
Safetensors
plamo3
text-generation
multilingual
custom_code
plamo
w4afp8
int4
fp8
compressed-tensors
vllm
Instructions to use pfnet/plamo-3-translate-0.8b-W4AFP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pfnet/plamo-3-translate-0.8b-W4AFP8 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="pfnet/plamo-3-translate-0.8b-W4AFP8", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("pfnet/plamo-3-translate-0.8b-W4AFP8", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from pfnet/plamo-3-translate-0.8b-W4AFP8: direct link, hf CLI and curl.
- Browser
- Download file 2.42 kB
-
https://huggingface.co/pfnet/plamo-3-translate-0.8b-W4AFP8/resolve/main/config.json
- Command line
-
hf download hf://pfnet/plamo-3-translate-0.8b-W4AFP8/config.json
-
curl -L -o config.json https://huggingface.co/pfnet/plamo-3-translate-0.8b-W4AFP8/resolve/main/config.json
2.42 kB
| { | |
| "architectures": [ | |
| "Plamo3ForCausalLM" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "modeling_plamo.Plamo3Config", | |
| "AutoModelForCausalLM": "modeling_plamo.Plamo3ForCausalLM" | |
| }, | |
| "bos_token_id": 1, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 1, | |
| "head_dim": 128, | |
| "hidden_size": 1536, | |
| "image_feature_size": null, | |
| "image_proj_type": "linear", | |
| "image_token_id": null, | |
| "initial_context_length": 4096, | |
| "intermediate_size": 6144, | |
| "linear_type": "normal", | |
| "max_position_embeddings": 262144, | |
| "model_type": "plamo3", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 16, | |
| "num_key_value_heads": 1, | |
| "pad_token_id": 3, | |
| "rms_norm_eps": 1e-06, | |
| "rope_local_theta": 10000, | |
| "rope_scaling_factor": 256.0, | |
| "rope_theta": 1000000, | |
| "scale_embedding": false, | |
| "sliding_window_pattern": 8, | |
| "tie_word_embeddings": false, | |
| "tokenizer_class": "Plamo3Tokenizer", | |
| "transformers_version": "4.57.1", | |
| "use_cache": true, | |
| "vocab_size": 107520, | |
| "window_size": 2048, | |
| "rope_parameters": { | |
| "full_attention": { | |
| "rope_type": "yarn", | |
| "rope_theta": 1000000, | |
| "factor": 256.0, | |
| "original_max_position_embeddings": 4096, | |
| "beta_fast": 32.0, | |
| "beta_slow": 1.0, | |
| "truncate": false | |
| }, | |
| "sliding_attention": { | |
| "rope_type": "default", | |
| "rope_theta": 10000 | |
| } | |
| }, | |
| "quantization_config": { | |
| "quant_method": "compressed-tensors", | |
| "format": "pack-quantized", | |
| "quantization_status": "compressed", | |
| "kv_cache_scheme": null, | |
| "global_compression_ratio": null, | |
| "ignore": [ | |
| "lm_head" | |
| ], | |
| "config_groups": { | |
| "group_0": { | |
| "targets": [ | |
| "Linear" | |
| ], | |
| "format": "pack-quantized", | |
| "weights": { | |
| "num_bits": 4, | |
| "type": "int", | |
| "strategy": "group", | |
| "group_size": 128, | |
| "symmetric": true, | |
| "dynamic": false, | |
| "actorder": null, | |
| "block_structure": null, | |
| "observer": "minmax", | |
| "observer_kwargs": {} | |
| }, | |
| "input_activations": { | |
| "num_bits": 8, | |
| "type": "float", | |
| "strategy": "token", | |
| "symmetric": true, | |
| "dynamic": true, | |
| "actorder": null, | |
| "block_structure": null, | |
| "group_size": null, | |
| "observer": null, | |
| "observer_kwargs": {} | |
| }, | |
| "output_activations": null | |
| } | |
| } | |
| } | |
| } | |