Text Generation
Transformers
Safetensors
Chinese
English
joyai_llm_flash
conversational
custom_code
compressed-tensors
Instructions to use jdopensource/JoyAI-LLM-Flash-INT4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jdopensource/JoyAI-LLM-Flash-INT4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jdopensource/JoyAI-LLM-Flash-INT4", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("jdopensource/JoyAI-LLM-Flash-INT4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jdopensource/JoyAI-LLM-Flash-INT4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jdopensource/JoyAI-LLM-Flash-INT4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jdopensource/JoyAI-LLM-Flash-INT4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jdopensource/JoyAI-LLM-Flash-INT4
- SGLang
How to use jdopensource/JoyAI-LLM-Flash-INT4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "jdopensource/JoyAI-LLM-Flash-INT4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jdopensource/JoyAI-LLM-Flash-INT4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "jdopensource/JoyAI-LLM-Flash-INT4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jdopensource/JoyAI-LLM-Flash-INT4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jdopensource/JoyAI-LLM-Flash-INT4 with Docker Model Runner:
docker model run hf.co/jdopensource/JoyAI-LLM-Flash-INT4
Add files using upload-large-folder tool
Browse filesFiles changed (45)
- chat_template.jinja+1-1
- config.json+14-14
- model-1-of-40.safetensors+1-1
- model-10-of-40.safetensors+1-1
- model-11-of-40.safetensors+1-1
- model-12-of-40.safetensors+1-1
- model-13-of-40.safetensors+1-1
- model-14-of-40.safetensors+1-1
- model-15-of-40.safetensors+1-1
- model-16-of-40.safetensors+1-1
- model-17-of-40.safetensors+1-1
- model-18-of-40.safetensors+1-1
- model-19-of-40.safetensors+1-1
- model-2-of-40.safetensors+1-1
- model-20-of-40.safetensors+1-1
- model-21-of-40.safetensors+1-1
- model-22-of-40.safetensors+1-1
- model-23-of-40.safetensors+1-1
- model-24-of-40.safetensors+1-1
- model-25-of-40.safetensors+1-1
- model-26-of-40.safetensors+1-1
- model-27-of-40.safetensors+1-1
- model-28-of-40.safetensors+1-1
- model-29-of-40.safetensors+1-1
- model-3-of-40.safetensors+1-1
- model-30-of-40.safetensors+1-1
- model-31-of-40.safetensors+1-1
- model-32-of-40.safetensors+1-1
- model-33-of-40.safetensors+1-1
- model-34-of-40.safetensors+1-1
- model-35-of-40.safetensors+1-1
- model-36-of-40.safetensors+1-1
- model-37-of-40.safetensors+1-1
- model-38-of-40.safetensors+1-1
- model-39-of-40.safetensors+1-1
- model-4-of-40.safetensors+1-1
- model-40-of-40.safetensors+1-1
- model-5-of-40.safetensors+1-1
- model-6-of-40.safetensors+1-1
- model-7-of-40.safetensors+1-1
- model-8-of-40.safetensors+1-1
- model-9-of-40.safetensors+1-1
- model-non-layer.safetensors+1-1
- model.safetensors.index.json+5-2
- mtp-1-of-1.safetensors+1-1
99 unmodified lines10010110210399 unmodified lines{%- if add_generation_prompt -%}{{ '<|Assistant|>' }}{{ '<|end_of_thought|>' }}{%- endif -%}99 unmodified lines10010110210399 unmodified lines{%- if add_generation_prompt -%}{{ '<|Assistant|>' }}{{ '<|end_of_thought|>' }}{%- endif -%}
33 unmodified lines34353637383926 unmodified lines666768697071727374757677787980818233 unmodified lines"q_lora_rank": 1536,"qk_nope_head_dim": 128,"qk_rope_head_dim": 64,"quantization_config": {"config_groups": {"group_0": {26 unmodified lines"kv_cache_scheme": null,"quant_method": "compressed-tensors","quantization_status": "compressed"},"rms_norm_eps": 1e-06,"rope_theta": 32000000,"routed_scaling_factor": 2.5,"scoring_func": "sigmoid","tie_word_embeddings": false,"topk_group": 1,"topk_method": "noaux_tc","torch_dtype": "bfloat16","transformers_version": "4.44.2","use_cache": true,"v_head_dim": 128,"vocab_size": 129280}33 unmodified lines34353637383940414243444546474849505126 unmodified lines787980818233 unmodified lines"q_lora_rank": 1536,"qk_nope_head_dim": 128,"qk_rope_head_dim": 64,"rms_norm_eps": 1e-06,"rope_theta": 32000000,"routed_scaling_factor": 2.5,"scoring_func": "sigmoid","tie_word_embeddings": false,"topk_group": 1,"topk_method": "noaux_tc","torch_dtype": "bfloat16","transformers_version": "4.44.2","use_cache": true,"v_head_dim": 128,"vocab_size": 129280,"quantization_config": {"config_groups": {"group_0": {26 unmodified lines"kv_cache_scheme": null,"quant_method": "compressed-tensors","quantization_status": "compressed"}}
123version https://git-lfs.github.com/spec/v1oid sha256:ebd70bcbb0406a3ac84a410bbcb2084663eaff71777ff849b88c94a8f8e573fesize 140785016123version https://git-lfs.github.com/spec/v1oid sha256:406da2e446429c6926744227f90f55b1d57a36c37163c63af496422ec04677casize 140785016
123version https://git-lfs.github.com/spec/v1oid sha256:1e68a68794db840d81f3f22e49819342867ff5487893afa386ec59cb5068adc8size 818455784123version https://git-lfs.github.com/spec/v1oid sha256:7a9a14526f144c3c70dea5f4129e5e2db227b232efce2392c525142223fd4788size 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:0432fe382f82baaa3e47dd83f8df582aa37b94f915168276e1cafa2be95f0df6size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:591bea12f9179342ac8473df01ded18fa791e0434864a91a70606511adfc4d9csize 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:cd69edd0fd07322db62320e1445b0edaf88fbfc329fed78795600277309ca74dsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:ca31c4dd871d00391cd4c1c5f0e00579d9adc4a2eced536b0db1a1f2d94c1307size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:e399fa15ac581198dbdb5b5f99e14fc027fef9cb6848f0bdaf6799c471858ab2size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:96dc2b62833028c2ceb4a9836afada274188ea6ab6af1d100bf809c86f270567size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:c3294a583c6272054fb3e6f57b31ccb4f237fc676d9f358880092b1ec39a53f0size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:308faf2cb085ca476e58a64f4c556170c41ae9c43e498739ec8a399bd6abd9e1size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:65691dc9d140e2461532eb165b7786bfcf7f8c6ba6dec68a8b10c09fecfe1854size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:e938314f5cadf447946ded702943747039b22fa6c1e8a496a78ad11f4f8f9f53size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:8512e7906f5e411664ba680dd69c87b3cf7d7354d1c28932f35aee0068abd804size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:02ce3eee43cd09f0075e517c6cca57e6833ca330a5eeb751775b3297150485c3size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:341395e7686a435638ed1998f41a5da1d5d4b52a8dbe8ea4a432343e7ec853acsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:4e981b2b5a10bafbf87279c6ae2f1bb5f2786fd239cff1fe6057a3221a128645size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:db59421bc92cbe64f6343dc8cf3f82ffb09d10a416917f93b6488b83bc50af8bsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:d463ff3ee96fde06710799c08054b06991301c2331c998fb0c4d2dd964783698size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:f2e300f710895d3f5679a1e61fba3184e9ff3bdeffc54767f82b13ccdf1c903esize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:894bd182b39e4d42b80d9cc40ac5a38b803f1754aa270867424cc35abbb8e509size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:3249aef3747d3a78d8b37fa5219f346abd48591093dda15b22b40174ed698f75size 818455784123version https://git-lfs.github.com/spec/v1oid sha256:6bdd822798f1569b0e201be7819ef9097895546e57883b03d0ac9e307976818dsize 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:63c75dfb7cdbccecc7b8e5afb87d65c1623629434c85d34b373b16aef415060bsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:1fb3862ffbaf77d91c45195fd3febfe07c7651c624db323c5df09637bf419cb6size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:4aa9fd148a1aab9559b0d5d1f345cdb9e6ef769678e0c2c90463b18d3dab7c27size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:a755db4f21c8ef10971a548d8f9d699fecef3fef668fe94e9326761d8e10bf04size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:e86ebb428394e6d450739df637111b45fe49a8a883ed33a7576ca63de3ddb33bsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:de93a5f68c185218e91ab1286409dbc97465de8e8fc80dac9faa2dd6bc57de81size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:f6fcc388477161d89f037107c0958b722d852076326fdba25f45d4118aeac712size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:751a31400e286a22e9d46c1a20f03adbdc4476f936ba8507b2af033aa66fc38fsize 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:d9d0adda14bea929c60ebff02acabc47a62a221d27c37460168c5c7ccfd8d7f1size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:6ca8b8535f50e822f8cd57a8b87e9f5a6f231de0f562a2717ea744cc5f617835size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:085424d0798a43dbce0fbda80d9cf0b61e654c04d94fb697743acba4885581a6size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:1ddedcf14d393e3ec36c223f9bd205a440ad6b5105fa140b23532f5428ade9e7size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:fdc517976349081bf657940d84c361ce0d51de6d12ce11bccd0b2e83f7826d44size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:830d845fc512e2a790e6798fc203871c056ea612eddddb559ccd36752d93459bsize 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:613cc2ffd942de01767dc9fcccf00e667b923da3287b273a34604ee9eb1192d1size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:b3298df21b79112125e7ad095172e9c562d5581f59894b73b7d43f1745f22d89size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:b964d1018293999dde903e9ca578cbf582955e574a5774c29d782f023dfae353size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:3811c01f6d50477a07e586492508019ecc7883f1a69ba7e7a8e9661f3b4395b2size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:f81791e2333000233928c532f20c9472c99066f0a918f0795f6bc637091c2f57size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:b85ffaf5973be8fa030171616de0e61d9965766c923762d7143125033940bcb7size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:936a1d296253824800c84085b87fcb4feee19009c89e3051d8f2a94e16915540size 818455784123version https://git-lfs.github.com/spec/v1oid sha256:0cd9ca1bebbda88f726d5cc5db88c89a707f4a9ff4a1bb686f77ec3d51bbb66fsize 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:bc4d5b42ff37a146ef54d093da2bb330a0bc076c894c3f2135066739c8e575fcsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:0afb7264ac96c3d4f3ecef5bbb963092c43eee3cce8e98cdda06a5ac23edff42size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:8af423fcac697a8445af5a4bcf6c8046ca4fe85577ac2bdd74267133633506a5size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:7adb6a2b2ba85188b0578cff4c99768c9677ae9629590d7a820065e9119dcc0dsize 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:52951758599b5591e24dfd89b4623461002df897d156533b872d0e7e68aacad7size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:14af1ce73f032d002f99fc22a79d7b9222a619af0f3a0a94341d6812885d9322size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:6c974bf6fea336fd83320cdf13529bd3f9ab7a87b4adb06affcdcb4241ecf854size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:6f298b903f77900ceaf9beefdae99d2b26bcdfdee7c450a971e2dc5fa9724e73size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:991f6ca08d25d91bef7edded52e031cf68a43179ae88dc47e03601ca38a9a1e5size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:706fdfbe986f6297b8585c053bdecf06357d163f1a967799aa28792a898ad38asize 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:a7606c1c870d9f615dc1ced571d6e79023829d0a8a8010baae933159fe31482dsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:b5b4dafab74c492e188001486016d14c57b9787b948eb3cf6d1a2d1bcc558e20size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:19f5984c7efee72836041b12072a832dc82e5c5a967ccdb18cbe6f31ed4269d9size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:27c762a92d19a55b0deeb065292e86b0800d9bd2b44533077efee5dbb06ce0dbsize 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:2085b3bbc0615c0a30cdec8e94d8c08ccf95bb07b1d23cbd6c561e11dd2f5707size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:ee716e34f3f48b4cd9f9be984ea9adcdd20c5c39c62cde1a96b1e58733a56118size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:a3b286910cc7e14f832499689100daf2645726a9bae5fd75e59d907ae5198c48size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:3f584b697b83471f0c044ed7bff158ec2d36e3b9464c999ac82dac09aa3e910bsize 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:afc88cb58a4ba708c0216bc479d9a0fd87576650ef8feb5a1f2e60e4b173692dsize 818458104123version https://git-lfs.github.com/spec/v1oid sha256:5127a9bcfa5b4c8ef37ec0c7b12e418ad6ba566a80c0ce59c331318a6c5f40e2size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:4d661d4f322cc733ce6867d4a579d8aca52f8893eba43c94920b09dc08f4f776size 818455784123version https://git-lfs.github.com/spec/v1oid sha256:0801dd78850f5dfe8e861c010adda50c3e26d602d718d5a57ff0245ebb142a8dsize 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:495da2c2f01d3a69f444642a664126029c086992916e082842654d5c95bd2ae8size 818458104123version https://git-lfs.github.com/spec/v1oid sha256:67463b6637636bf9d2adb645f56ac1970930ed919832d1f5f987419f5b00b804size 818458104
123version https://git-lfs.github.com/spec/v1oid sha256:f228e3aa08211d43ef62fcab644e08eaee55cb38bd747f06b9e39a0b18c7a8ebsize 818455784123version https://git-lfs.github.com/spec/v1oid sha256:3e4342823e80e2e740a97070fec31b98a8b65dd53fd6eff68d22afd421346cd3size 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:3d9918423c7989d63be11c64badc08ff06808fc522d01847cc9f9d19159a81cfsize 818455784123version https://git-lfs.github.com/spec/v1oid sha256:37cf69249bd0c3a58e86bfc17674c4b9c512c80ae75737c730c679a5f9a4440esize 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:87cdff44a17b405ea7385b394b0758f3e55b4f152191f2d5f5454fd6d0091f73size 818455784123version https://git-lfs.github.com/spec/v1oid sha256:4b3b758f044f42f2aeb6807d6adbf90b810d72e2a8cb264ab4388a281a4aee9dsize 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:8dd4421554edbaa2d02da677b89928091e5fbb9884e6c72cb1764c07fd9f545dsize 818455784123version https://git-lfs.github.com/spec/v1oid sha256:c69250b22fcb82655f84d7cd1fe5095a1144ffe733173aea997f21bda7805857size 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:61a47e9de20be225571f9fd2f37204ca3d50106a3769ae646ac269bdae718a8asize 818455784123version https://git-lfs.github.com/spec/v1oid sha256:5540d20c8ef9b3af7677341c7fb094833c97b979fb1c354186773b2943f4d3fdsize 818455784
123version https://git-lfs.github.com/spec/v1oid sha256:358810bbba6e784b3be7462f7398fed2ba159a0edcec4f586aa72e877f4187casize 1059066184123version https://git-lfs.github.com/spec/v1oid sha256:feab4d0c54e6ce4dfcd72044cd8db156eccb363c23734515ba070ec34001e98fsize 1059066184
123490427 unmodified lines90432904339043490435904369043790438{"weight_map": {"lm_head.weight": "model-non-layer.safetensors","model.embed_tokens.weight": "model-non-layer.safetensors",90427 unmodified lines"model.layers.40.self_attn.q_a_layernorm.weight": "mtp-1-of-1.safetensors","model.layers.40.self_attn.q_a_proj.weight": "mtp-1-of-1.safetensors","model.layers.40.self_attn.q_b_proj.weight": "mtp-1-of-1.safetensors","model.layers.40.shared_head.head.weight": "mtp-1-of-1.safetensors","model.layers.40.shared_head.norm.weight": "mtp-1-of-1.safetensors"}}123456790427 unmodified lines90435904369043790438904399044090441{"metadata": {"total_size": 0},"weight_map": {"lm_head.weight": "model-non-layer.safetensors","model.embed_tokens.weight": "model-non-layer.safetensors",90427 unmodified lines"model.layers.40.self_attn.q_a_layernorm.weight": "mtp-1-of-1.safetensors","model.layers.40.self_attn.q_a_proj.weight": "mtp-1-of-1.safetensors","model.layers.40.self_attn.q_b_proj.weight": "mtp-1-of-1.safetensors","model.layers.40.shared_head.norm.weight": "mtp-1-of-1.safetensors","model.layers.40.shared_head.head.weight": "mtp-1-of-1.safetensors"}}
123version https://git-lfs.github.com/spec/v1oid sha256:74cb5a9b60987b70d854406b19ed713e781774bada163d3097f808f09c08d7bfsize 687105960123version https://git-lfs.github.com/spec/v1oid sha256:d5668c90e7a7cab0ea4573fccc0cd8e4bcdd7aa18e8f9b3b7b8bed169ca0ec1csize 687105960
chat_template.jinja+1-1
config.json+14-14
model-1-of-40.safetensors+1-1
model-10-of-40.safetensors+1-1
model-11-of-40.safetensors+1-1
model-12-of-40.safetensors+1-1
model-13-of-40.safetensors+1-1
model-14-of-40.safetensors+1-1
model-15-of-40.safetensors+1-1
model-16-of-40.safetensors+1-1
model-17-of-40.safetensors+1-1
model-18-of-40.safetensors+1-1
model-19-of-40.safetensors+1-1
model-2-of-40.safetensors+1-1
model-20-of-40.safetensors+1-1
model-21-of-40.safetensors+1-1
model-22-of-40.safetensors+1-1
model-23-of-40.safetensors+1-1
model-24-of-40.safetensors+1-1
model-25-of-40.safetensors+1-1
model-26-of-40.safetensors+1-1
model-27-of-40.safetensors+1-1
model-28-of-40.safetensors+1-1
model-29-of-40.safetensors+1-1
model-3-of-40.safetensors+1-1
model-30-of-40.safetensors+1-1
model-31-of-40.safetensors+1-1
model-32-of-40.safetensors+1-1
model-33-of-40.safetensors+1-1
model-34-of-40.safetensors+1-1
model-35-of-40.safetensors+1-1
model-36-of-40.safetensors+1-1
model-37-of-40.safetensors+1-1
model-38-of-40.safetensors+1-1
model-39-of-40.safetensors+1-1
model-4-of-40.safetensors+1-1
model-40-of-40.safetensors+1-1
model-5-of-40.safetensors+1-1
model-6-of-40.safetensors+1-1
model-7-of-40.safetensors+1-1
model-8-of-40.safetensors+1-1
model-9-of-40.safetensors+1-1
model-non-layer.safetensors+1-1
model.safetensors.index.json+5-2
mtp-1-of-1.safetensors+1-1