Instructions to use AdoCleanCode/llasa_stage3_trained_multilingual_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdoCleanCode/llasa_stage3_trained_multilingual_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdoCleanCode/llasa_stage3_trained_multilingual_v2") 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("AdoCleanCode/llasa_stage3_trained_multilingual_v2") model = AutoModelForCausalLM.from_pretrained("AdoCleanCode/llasa_stage3_trained_multilingual_v2", 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 AdoCleanCode/llasa_stage3_trained_multilingual_v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdoCleanCode/llasa_stage3_trained_multilingual_v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdoCleanCode/llasa_stage3_trained_multilingual_v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AdoCleanCode/llasa_stage3_trained_multilingual_v2
- SGLang
How to use AdoCleanCode/llasa_stage3_trained_multilingual_v2 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 "AdoCleanCode/llasa_stage3_trained_multilingual_v2" \ --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": "AdoCleanCode/llasa_stage3_trained_multilingual_v2", "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 "AdoCleanCode/llasa_stage3_trained_multilingual_v2" \ --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": "AdoCleanCode/llasa_stage3_trained_multilingual_v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AdoCleanCode/llasa_stage3_trained_multilingual_v2 with Docker Model Runner:
docker model run hf.co/AdoCleanCode/llasa_stage3_trained_multilingual_v2
Commit History
-
Auto-upload after eval at step 5500 (eval_loss: 6.2849)
Verified signature2c78d7e -
Auto-upload after eval at step 5000 (eval_loss: 6.2865)
Verified signatureda931c0 -
Auto-upload after eval at step 4500 (eval_loss: 6.2848)
Verified signature05b61a5 -
Auto-upload after eval at step 4000 (eval_loss: 6.2867)
Verified signaturee6d2b2e -
Auto-upload after eval at step 3500 (eval_loss: 6.2895)
Verified signature63ab986 -
Auto-upload after eval at step 3000 (eval_loss: 6.2955)
Verified signaturea3633d5 -
Auto-upload after eval at step 2500 (eval_loss: 6.2953)
Verified signatured3dbdff -
Auto-upload after eval at step 2000 (eval_loss: 6.3104)
Verified signatureee976ad -
Auto-upload after eval at step 1500 (eval_loss: 6.3304)
Verified signaturec4fe5d7 -
Auto-upload after eval at step 1000 (eval_loss: 6.3473)
Verified signaturea8b9f17 -
Auto-upload tokenizer after eval at step 500
Verified signature9b5c4c5 -
Auto-upload after eval at step 500 (eval_loss: 6.3750)
Verified signatureea20696 -
initial commit
Verified signature34f596d