Text Generation
Transformers
Safetensors
Turkish
English
jamba
mamba
ssm
turkish
conversational
continued-pretraining
sft
Instructions to use serda-dev/Jamba2-3B-Turkish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use serda-dev/Jamba2-3B-Turkish with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="serda-dev/Jamba2-3B-Turkish") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("serda-dev/Jamba2-3B-Turkish") model = AutoModelForCausalLM.from_pretrained("serda-dev/Jamba2-3B-Turkish", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use serda-dev/Jamba2-3B-Turkish with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "serda-dev/Jamba2-3B-Turkish" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "serda-dev/Jamba2-3B-Turkish", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/serda-dev/Jamba2-3B-Turkish
- SGLang
How to use serda-dev/Jamba2-3B-Turkish 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 "serda-dev/Jamba2-3B-Turkish" \ --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": "serda-dev/Jamba2-3B-Turkish", "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 "serda-dev/Jamba2-3B-Turkish" \ --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": "serda-dev/Jamba2-3B-Turkish", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use serda-dev/Jamba2-3B-Turkish with Docker Model Runner:
docker model run hf.co/serda-dev/Jamba2-3B-Turkish
Download training/checkpoint_hashes.json from serda-dev/Jamba2-3B-Turkish: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/serda-dev/Jamba2-3B-Turkish/resolve/main/training/checkpoint_hashes.json
- Command line
-
hf download hf://serda-dev/Jamba2-3B-Turkish/training/checkpoint_hashes.json
-
curl -L -o checkpoint_hashes.json https://huggingface.co/serda-dev/Jamba2-3B-Turkish/resolve/main/training/checkpoint_hashes.json
2.5 kB
| { | |
| "source_repo": "serda-dev/Jamba2-3B-Turkish-SFT-20261013", | |
| "source_revision": "0b22f86c21610f620826067f573aa5ef2821e9cf", | |
| "source_subfolder": "checkpoints/final", | |
| "files": { | |
| "chat_template.jinja": { | |
| "size": 338, | |
| "sha256": "a9e1df787257733cecb4cba1cf38a5fdf464332be58a50a2b57c9c0147318856", | |
| "source_blob_id": "ea0688c85bf822110956b757b037915be3341045", | |
| "lfs": false | |
| }, | |
| "config.json": { | |
| "size": 1005, | |
| "sha256": "be0ba88281582e96940f893e2d2ba6669ee8ea48e267f0311947e14cf6e1c751", | |
| "source_blob_id": "cfe4f6518be5e89573db6d595bbc8fe8b51ee6e7", | |
| "lfs": false | |
| }, | |
| "generation_config.json": { | |
| "size": 144, | |
| "sha256": "cc99e9a6cfa3d297d57ee0a71b3764ccd922849b73b410c18b99d89236f070c5", | |
| "source_blob_id": "6dd2e75cb20b1ce3d0044f2c06f5fce12b4a95ef", | |
| "lfs": false | |
| }, | |
| "model-00001-of-00002.safetensors": { | |
| "size": 4996115336, | |
| "sha256": "75f40772e322b0a0b31fa50c04b635f558c99e1633717d82191a3d35cea33556", | |
| "source_blob_id": "3471037093fac800afa9e8e23a29b86011160172", | |
| "lfs": true | |
| }, | |
| "model-00002-of-00002.safetensors": { | |
| "size": 1083583048, | |
| "sha256": "97ae7fff7efae9660c161111d84d805fbf4a6e38e4e4a910f6b3233d64032723", | |
| "source_blob_id": "0b8922742bb5204f91387c6210421b785f190526", | |
| "lfs": true | |
| }, | |
| "model.safetensors.index.json": { | |
| "size": 37364, | |
| "sha256": "1b5ae563bf99fe80b4c546dc38f7f399f94356ff84f7494767e8ad4a143bb944", | |
| "source_blob_id": "ac67e16ba9c10358cc0399e5e45221b9e249222f", | |
| "lfs": false | |
| }, | |
| "sft_provenance.json": { | |
| "size": 289, | |
| "sha256": "ba7e4a39d5b7a2f8ad5d331d49c9a7a08f0cb6af77ae23da2d266dae8a8b37a9", | |
| "source_blob_id": "fd10675e77d0fc5066d24f34a85d18a5dc698343", | |
| "lfs": false | |
| }, | |
| "special_tokens_map.json": { | |
| "size": 895, | |
| "sha256": "90a1f613c89566d8c7f53043a7092321d376498ac541aae1914ef1328e895be7", | |
| "source_blob_id": "23e28b9b493b9ef6073fbb9fd43783c970cd10a4", | |
| "lfs": false | |
| }, | |
| "tokenizer.json": { | |
| "size": 8596605, | |
| "sha256": "c1b05f54e568d58a40f33e420080ab637dd9c3e294968165e085018e4e615e6a", | |
| "source_blob_id": "fde532d03b3f8073aba3e2f9b07ce220d025bcee", | |
| "lfs": false | |
| }, | |
| "tokenizer_config.json": { | |
| "size": 5771, | |
| "sha256": "a05e17f6c5eff04d8d86c3bc2cd90c4613fbee2fb474de21cc3814a47f54ffad", | |
| "source_blob_id": "44179b40ff36e201d3fb87c1fb464444782f2669", | |
| "lfs": false | |
| } | |
| } | |
| } | |