Instructions to use AdoCleanCode/llasa_stage2_trained_multilingual_stage6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdoCleanCode/llasa_stage2_trained_multilingual_stage6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdoCleanCode/llasa_stage2_trained_multilingual_stage6") 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_stage2_trained_multilingual_stage6") model = AutoModelForCausalLM.from_pretrained("AdoCleanCode/llasa_stage2_trained_multilingual_stage6", 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_stage2_trained_multilingual_stage6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdoCleanCode/llasa_stage2_trained_multilingual_stage6" # 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_stage2_trained_multilingual_stage6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AdoCleanCode/llasa_stage2_trained_multilingual_stage6
- SGLang
How to use AdoCleanCode/llasa_stage2_trained_multilingual_stage6 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_stage2_trained_multilingual_stage6" \ --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_stage2_trained_multilingual_stage6", "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_stage2_trained_multilingual_stage6" \ --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_stage2_trained_multilingual_stage6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AdoCleanCode/llasa_stage2_trained_multilingual_stage6 with Docker Model Runner:
docker model run hf.co/AdoCleanCode/llasa_stage2_trained_multilingual_stage6
Commit History
-
Auto-upload after eval at step 10500 (eval_loss: 6.6948)
Verified signatureeb677cf -
Auto-upload after eval at step 10000 (eval_loss: 6.6953)
Verified signature26d8758 -
Auto-upload after eval at step 9500 (eval_loss: 6.6995)
Verified signaturebdedbe2 -
Auto-upload after eval at step 9000 (eval_loss: 6.7035)
Verified signature38c2859 -
Auto-upload after eval at step 8500 (eval_loss: 6.7048)
Verified signature054fb4e -
Auto-upload after eval at step 8000 (eval_loss: 6.7049)
Verified signature53adb6f -
Auto-upload after eval at step 7500 (eval_loss: 6.7095)
Verified signature946e635 -
Auto-upload after eval at step 7000 (eval_loss: 6.7205)
Verified signature60ab465 -
Auto-upload after eval at step 6500 (eval_loss: 6.7293)
Verified signature2e13e8a -
Auto-upload after eval at step 6000 (eval_loss: 6.7367)
Verified signature142596d -
Auto-upload after eval at step 5500 (eval_loss: 6.7424)
Verified signature2646517 -
Auto-upload after eval at step 5000 (eval_loss: 6.7466)
Verified signature64d4cc6 -
Auto-upload after eval at step 4500 (eval_loss: 6.7526)
Verified signature96a6af3 -
Auto-upload after eval at step 4000 (eval_loss: 6.7548)
Verified signature3960b9e -
Auto-upload after eval at step 3500 (eval_loss: 6.7663)
Verified signature6639188 -
Auto-upload after eval at step 3000 (eval_loss: 6.7793)
Verified signature16f1213 -
Auto-upload after eval at step 2500 (eval_loss: 6.7893)
Verified signatured4de72b -
Auto-upload after eval at step 2000 (eval_loss: 6.7995)
Verified signaturea25d4f9 -
Auto-upload after eval at step 1500 (eval_loss: 6.7728)
Verified signaturec57bdc1 -
Auto-upload after eval at step 1000 (eval_loss: 6.7496)
Verified signature65031b1
-
Auto-upload tokenizer after eval at step 500
Verified signature6354bbc -
Auto-upload after eval at step 500 (eval_loss: 6.7369)
Verified signature0af6025 -
initial commit
Verified signaturef6c114b