Text Generation
PEFT
Safetensors
qlora
stiefel-manifold
continuous-reasoning
float32-precision
cag-truth-gate
pmtp-zero-token
polydim-einsof
conversational
Instructions to use Polydim-Einsof/einsof2-deepseek-v4-stiefel-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Polydim-Einsof/einsof2-deepseek-v4-stiefel-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct") model = PeftModel.from_pretrained(base_model, "Polydim-Einsof/einsof2-deepseek-v4-stiefel-adapter") - Notebooks
- Google Colab
- Kaggle
Upload EINSOF-II DeepSeek-V4.1 Flash 16B MoE Stiefel Polar LoRA Adapter with order 4 Stiefel retraction (Exit Code 0)
Browse filesFiles changed (6)
- README.mdAdded+62
- adapter_config.jsonAdded+56
- adapter_model.safetensorsAdded+3
- chat_template.jinjaAdded+5
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+14
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---base_model: deepseek-ai/DeepSeek-Coder-V2-Lite-Instructlibrary_name: peftmodel_name: einsof2_deepseek_v4_stiefel_adaptertags:- base_model:adapter:deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct- lora- sft- transformers- trllicence: licensepipeline_tag: text-generation---
# Model Card for einsof2_deepseek_v4_stiefel_adapter
This model is a fine-tuned version of [deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct](https://huggingface.co/deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct).It has been trained using [TRL](https://github.com/huggingface/trl).
## Quick start
```pythonfrom transformers import pipeline
question = "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="None", device_map="auto")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
This model was trained with SFT.
### Framework versions
- PEFT 0.21.2- TRL: 1.18.0- Transformers: 5.20.2- Pytorch: 2.11.0+cu130- Datasets: 4.8.5- Tokenizers: 0.23.3
## Citations
Cite 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 and Dirhoussi, Amine}, license = {Apache-2.0}, url = {https://github.com/huggingface/trl}, year = {2020}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "alora_invocation_tokens": null, "alpha_pattern": { ".*\\.gate_up_proj": 64 }, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "kasa_config": null, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 32, "lora_bias": false, "lora_dropout": 0.05, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.21.2", "qalora_group_size": 16, "r": 16, "rank_pattern": { ".*\\.gate_up_proj": 32 }, "revision": null, "target_modules": [ "q_a_proj", "kv_b_proj", "q_b_proj", "kv_a_proj_with_mqa", "q_proj" ], "target_parameters": [ "down_proj", "gate_up_proj" ], "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:676b8ad745b4004f5ef57bb435dbee456df39aeff2fd1ea5be551bbed45b181asize 1069452012345{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ 'User: ' + message['content'] + '
' }}{% elif message['role'] == 'assistant' %}{{ 'Assistant: ' + message['content'] + eos_token }}{% elif message['role'] == 'system' %}{{ message['content'] + '
' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}1234567891011121314{ "backend": "tokenizers", "bos_token": "<|begin▁of▁sentence|>", "clean_up_tokenization_spaces": false, "eos_token": "<|end▁of▁sentence|>", "is_local": false, "legacy": true, "local_files_only": false, "model_max_length": 16384, "pad_token": "<|end▁of▁sentence|>", "sp_model_kwargs": {}, "tokenizer_class": "TokenizersBackend", "unk_token": null}README.mdAdded+62
adapter_config.jsonAdded+56
adapter_model.safetensorsAdded+3
chat_template.jinjaAdded+5
tokenizer.jsonAdded
tokenizer_config.jsonAdded+14