Text Generation
Transformers
Safetensors
cohere
conversational
text-generation-inference
4-bit precision
exl3
Instructions to use Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6") model = AutoModelForCausalLM.from_pretrained("Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6
- SGLang
How to use Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6 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 "Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6" \ --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": "Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6", "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 "Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6" \ --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": "Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6 with Docker Model Runner:
docker model run hf.co/Downtown-Case/jukofyork_command-r-35b-writer-v3-exl3-3.75bpw-hb6
| inference: false | |
| language: | |
| - en | |
| - fr | |
| - de | |
| - es | |
| - it | |
| - pt | |
| - ja | |
| - ko | |
| - zh | |
| - ar | |
| license: cc-by-nc-4.0 | |
| library_name: transformers | |
| extra_gated_prompt: >- | |
| By submitting this form, you agree to the [License | |
| Agreement](https://cohere.com/c4ai-cc-by-nc-license) and acknowledge that the | |
| information you provide will be collected, used, and shared in accordance with | |
| Cohere’s [Privacy Policy]( https://cohere.com/privacy). You’ll receive email | |
| updates about Cohere Labs and Cohere research, events, products and services. | |
| You can unsubscribe at any time. | |
| extra_gated_fields: | |
| Name: text | |
| Affiliation: text | |
| Country: | |
| type: select | |
| options: | |
| - Aruba | |
| - Afghanistan | |
| - Angola | |
| - Anguilla | |
| - Åland Islands | |
| - Albania | |
| - Andorra | |
| - United Arab Emirates | |
| - Argentina | |
| - Armenia | |
| - American Samoa | |
| - Antarctica | |
| - French Southern Territories | |
| - Antigua and Barbuda | |
| - Australia | |
| - Austria | |
| - Azerbaijan | |
| - Burundi | |
| - Belgium | |
| - Benin | |
| - Bonaire Sint Eustatius and Saba | |
| - Burkina Faso | |
| - Bangladesh | |
| - Bulgaria | |
| - Bahrain | |
| - Bahamas | |
| - Bosnia and Herzegovina | |
| - Saint Barthélemy | |
| - Belarus | |
| - Belize | |
| - Bermuda | |
| - Plurinational State of Bolivia | |
| - Brazil | |
| - Barbados | |
| - Brunei-Darussalam | |
| - Bhutan | |
| - Bouvet-Island | |
| - Botswana | |
| - Central African Republic | |
| - Canada | |
| - Cocos (Keeling) Islands | |
| - Switzerland | |
| - Chile | |
| - China | |
| - Côte-dIvoire | |
| - Cameroon | |
| - Democratic Republic of the Congo | |
| - Cook Islands | |
| - Colombia | |
| - Comoros | |
| - Cabo Verde | |
| - Costa Rica | |
| - Cuba | |
| - Curaçao | |
| - Christmas Island | |
| - Cayman Islands | |
| - Cyprus | |
| - Czechia | |
| - Germany | |
| - Djibouti | |
| - Dominica | |
| - Denmark | |
| - Dominican Republic | |
| - Algeria | |
| - Ecuador | |
| - Egypt | |
| - Eritrea | |
| - Western Sahara | |
| - Spain | |
| - Estonia | |
| - Ethiopia | |
| - Finland | |
| - Fiji | |
| - Falkland Islands (Malvinas) | |
| - France | |
| - Faroe Islands | |
| - Federated States of Micronesia | |
| - Gabon | |
| - United Kingdom | |
| - Georgia | |
| - Guernsey | |
| - Ghana | |
| - Gibraltar | |
| - Guinea | |
| - Guadeloupe | |
| - Gambia | |
| - Guinea Bissau | |
| - Equatorial Guinea | |
| - Greece | |
| - Grenada | |
| - Greenland | |
| - Guatemala | |
| - French Guiana | |
| - Guam | |
| - Guyana | |
| - Hong Kong | |
| - Heard Island and McDonald Islands | |
| - Honduras | |
| - Croatia | |
| - Haiti | |
| - Hungary | |
| - Indonesia | |
| - Isle of Man | |
| - India | |
| - British Indian Ocean Territory | |
| - Ireland | |
| - Islamic Republic of Iran | |
| - Iraq | |
| - Iceland | |
| - Israel | |
| - Italy | |
| - Jamaica | |
| - Jersey | |
| - Jordan | |
| - Japan | |
| - Kazakhstan | |
| - Kenya | |
| - Kyrgyzstan | |
| - Cambodia | |
| - Kiribati | |
| - Saint-Kitts-and-Nevis | |
| - South Korea | |
| - Kuwait | |
| - Lao-Peoples-Democratic-Republic | |
| - Lebanon | |
| - Liberia | |
| - Libya | |
| - Saint-Lucia | |
| - Liechtenstein | |
| - Sri Lanka | |
| - Lesotho | |
| - Lithuania | |
| - Luxembourg | |
| - Latvia | |
| - Macao | |
| - Saint Martin (French-part) | |
| - Morocco | |
| - Monaco | |
| - Republic of Moldova | |
| - Madagascar | |
| - Maldives | |
| - Mexico | |
| - Marshall Islands | |
| - North Macedonia | |
| - Mali | |
| - Malta | |
| - Myanmar | |
| - Montenegro | |
| - Mongolia | |
| - Northern Mariana Islands | |
| - Mozambique | |
| - Mauritania | |
| - Montserrat | |
| - Martinique | |
| - Mauritius | |
| - Malawi | |
| - Malaysia | |
| - Mayotte | |
| - Namibia | |
| - New Caledonia | |
| - Niger | |
| - Norfolk Island | |
| - Nigeria | |
| - Nicaragua | |
| - Niue | |
| - Netherlands | |
| - Norway | |
| - Nepal | |
| - Nauru | |
| - New Zealand | |
| - Oman | |
| - Pakistan | |
| - Panama | |
| - Pitcairn | |
| - Peru | |
| - Philippines | |
| - Palau | |
| - Papua New Guinea | |
| - Poland | |
| - Puerto Rico | |
| - North Korea | |
| - Portugal | |
| - Paraguay | |
| - State of Palestine | |
| - French Polynesia | |
| - Qatar | |
| - Réunion | |
| - Romania | |
| - Russia | |
| - Rwanda | |
| - Saudi Arabia | |
| - Sudan | |
| - Senegal | |
| - Singapore | |
| - South Georgia and the South Sandwich Islands | |
| - Saint Helena Ascension and Tristan da Cunha | |
| - Svalbard and Jan Mayen | |
| - Solomon Islands | |
| - Sierra Leone | |
| - El Salvador | |
| - San Marino | |
| - Somalia | |
| - Saint Pierre and Miquelon | |
| - Serbia | |
| - South Sudan | |
| - Sao Tome and Principe | |
| - Suriname | |
| - Slovakia | |
| - Slovenia | |
| - Sweden | |
| - Eswatini | |
| - Sint Maarten (Dutch-part) | |
| - Seychelles | |
| - Syrian Arab Republic | |
| - Turks and Caicos Islands | |
| - Chad | |
| - Togo | |
| - Thailand | |
| - Tajikistan | |
| - Tokelau | |
| - Turkmenistan | |
| - Timor Leste | |
| - Tonga | |
| - Trinidad and Tobago | |
| - Tunisia | |
| - Turkey | |
| - Tuvalu | |
| - Taiwan | |
| - United Republic of Tanzania | |
| - Uganda | |
| - Ukraine | |
| - United States Minor Outlying Islands | |
| - Uruguay | |
| - United-States | |
| - Uzbekistan | |
| - Holy See (Vatican City State) | |
| - Saint Vincent and the Grenadines | |
| - Bolivarian Republic of Venezuela | |
| - Virgin Islands British | |
| - Virgin Islands U.S. | |
| - VietNam | |
| - Vanuatu | |
| - Wallis and Futuna | |
| - Samoa | |
| - Yemen | |
| - South Africa | |
| - Zambia | |
| - Zimbabwe | |
| I agree to use this model for non-commercial use ONLY: checkbox | |
| base_model: | |
| - CohereLabs/c4ai-command-r-v01 | |
| EXL3 quant with 3bpw MLP projection layer and 4bpw for all other layers, to fit in 24GB cards with 16K context. Original description: | |
| Merged [jukofyork/command-r-35b-writer-v3-multiplicative-lora](https://huggingface.co/jukofyork/command-r-35b-writer-v3-multiplicative-lora) into [CohereLabs/c4ai-command-r-v01](https://huggingface.co/CohereLabs/c4ai-command-r-v01) using [jukofyork/merge-lora](https://huggingface.co/spaces/jukofyork/merge-lora). | |
| Untested... But appears to have worked: | |
| ``` | |
| ✓ Successfully merged and uploaded model! | |
| Model URL: https://huggingface.co/jukofyork/command-r-35b-writer-v3 | |
| Merge mode: Multiplicative | |
| Scale factor: 1 | |
| Processed 15 shards | |
| Merged 72 layers with LoRA weights | |
| ``` |