Instructions to use NextGenWhu/openfin-1.5B-ZH-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NextGenWhu/openfin-1.5B-ZH-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="NextGenWhu/openfin-1.5B-ZH-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("NextGenWhu/openfin-1.5B-ZH-base") model = AutoModel.from_pretrained("NextGenWhu/openfin-1.5B-ZH-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from NextGenWhu/openfin-1.5B-ZH-base: direct link, hf CLI and curl.
- Browser
- Download file 759 Bytes
-
https://huggingface.co/NextGenWhu/openfin-1.5B-ZH-base/resolve/main/config.json
- Command line
-
hf download hf://NextGenWhu/openfin-1.5B-ZH-base/config.json
-
curl -L -o config.json https://huggingface.co/NextGenWhu/openfin-1.5B-ZH-base/resolve/main/config.json
759 Bytes
| { | |
| "_name_or_path": "openfin-1.5B-ZH-base/checkpoint-47", | |
| "architectures": [ | |
| "Qwen2Model" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "eos_token_id": 151643, | |
| "hidden_act": "silu", | |
| "hidden_size": 1536, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 8960, | |
| "max_position_embeddings": 131072, | |
| "max_window_layers": 28, | |
| "model_type": "qwen2", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 2, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": 131072, | |
| "tie_word_embeddings": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.49.0", | |
| "use_cache": false, | |
| "use_mrope": false, | |
| "use_sliding_window": false, | |
| "vocab_size": 151936 | |
| } | |