Model save
Browse filesFiles changed (8)
- README.md+58-3
- chat_template.jinjaAdded+6
- config.jsonAdded+40
- generation_config.jsonAdded+9
- model.safetensorsAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+17
- training_args.binAdded+3
123---license: mit---12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: HuggingFaceTB/SmolLM2-135M-Instructlibrary_name: transformersmodel_name: empathLMtags:- generated_from_trainer- trl- sftlicence: license---# Model Card for empathLMThis model is a fine-tuned version of [HuggingFaceTB/SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct).It has been trained using [TRL](https://github.com/huggingface/trl).## Quick start```pythonfrom transformers import pipelinequestion = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"generator = pipeline("text-generation", model="maliksaad/empathLM", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```## Training procedureThis model was trained with SFT.### Framework versions- TRL: 0.29.1- Transformers: 5.0.0- Pytorch: 2.10.0+cu128- Datasets: 4.8.3- Tokenizers: 0.22.2## CitationsCite TRL as:```bibtex@software{vonwerra2020trl,title = {{TRL: Transformers Reinforcement Learning}},author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},license = {Apache-2.0},url = {https://github.com/huggingface/trl},year = {2020}}```
123456{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>systemYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>' }}{% endif %}{{'<|im_start|>' + message['role'] + '' + message['content'] + '<|im_end|>' + ''}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant' }}{% endif %}12345678910111213141516171819202122232425262728293031323334353637383940{ "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "dtype": "float32", "eos_token_id": 2, "head_dim": 64, "hidden_act": "silu", "hidden_size": 576, "initializer_range": 0.041666666666666664, "intermediate_size": 1536, "is_llama_config": true, "max_position_embeddings": 8192, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 9, "num_hidden_layers": 30, "num_key_value_heads": 3, "pad_token_id": 2, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_interleaved": false, "rope_parameters": { "rope_theta": 100000, "rope_type": "default" }, "tie_word_embeddings": true, "transformers.js_config": { "kv_cache_dtype": { "fp16": "float16", "q4f16": "float16" } }, "transformers_version": "5.0.0", "use_cache": false, "vocab_size": 49152}123456789{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": [ 2 ], "pad_token_id": 2, "transformers_version": "5.0.0"}123version https://git-lfs.github.com/spec/v1oid sha256:2e95935d0537448df775924feff711dda320645e02d416b458fd58e5d801b476size 5380904081234567891011121314151617{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": "<|im_start|>", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "extra_special_tokens": [ "<|im_start|>", "<|im_end|>" ], "is_local": false, "model_max_length": 8192, "pad_token": "<|im_end|>", "tokenizer_class": "TokenizersBackend", "unk_token": "<|endoftext|>", "vocab_size": 49152}123version https://git-lfs.github.com/spec/v1oid sha256:c7f3a8454c625fdc513101db8607536507e5ef2c21e7aff1aed75134c1f33789size 5649README.md+58-3
chat_template.jinjaAdded+6
config.jsonAdded+40
generation_config.jsonAdded+9
model.safetensorsAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+17
training_args.binAdded+3