Instructions to use Narednra/Ltinyllama1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Narednra/Ltinyllama1B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0") model = PeftModel.from_pretrained(base_model, "Narednra/Ltinyllama1B") - Notebooks
- Google Colab
- Kaggle
Download config.json from Narednra/Ltinyllama1B: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/Narednra/Ltinyllama1B/resolve/main/config.json
- Command line
-
hf download hf://Narednra/Ltinyllama1B/config.json
-
curl -L -o config.json https://huggingface.co/Narednra/Ltinyllama1B/resolve/main/config.json
686 Bytes
| { | |
| "_name_or_path": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", | |
| "architectures": [ | |
| "LlamaForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5632, | |
| "max_position_embeddings": 2048, | |
| "model_type": "llama", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 22, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": 0, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.31.0", | |
| "use_cache": true, | |
| "vocab_size": 32000 | |
| } | |