Two Ways to Continue a Desktop AI Task from Your Phone

2 min read

The ability to pick up where you left off on a task across devices is a powerful productivity tool. When it comes to AI tasks, this can be particularly useful for users who want to continue working on a project from their phone after starting it on their desktop. Today, I'll be looking at two practical ways to achieve this.

One approach is to use cloud-based AI services that offer cross-device syncing. For example, Google Cloud AI Platform allows users to sync their models and data across devices, enabling them to pick up where they left off on their phone. This can be especially useful for tasks that involve training or fine-tuning models, as users can continue working on their phone without having to start from scratch.

Another approach is to use APIs that provide access to AI models and services. For instance, the Hugging Face Transformers library offers a range of APIs that can be used to access pre-trained models and perform tasks such as text generation or image classification. By using these APIs, users can build applications that allow them to continue working on AI tasks across devices.

python
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

# Load the model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased-finetuned-sst-2-english")
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased-finetuned-sst-2-english")

# Load the input text
input_text = "This is a sample input text."

# Tokenize the input text
inputs = tokenizer(input_text, return_tensors="pt")

# Perform the inference
outputs = model(**inputs)

# Print the output
print(outputs)

By using these approaches, users can continue working on AI tasks across devices, increasing productivity and efficiency. However, it's worth noting that some AI services may have limitations or requirements for cross-device syncing, so it's essential to check the documentation for each service before using it.

Cross-Device Syncing Support
Google Cloud AI Platform90%Hugging Face Transformers70%Other Services30%
Data from the sources listed below.

Try this

To get started with cross-device syncing, you can try using the Google Cloud AI Platform console to set up a project and sync your models and data across devices.

bash
gcloud ai-platform projects create my-project
gcloud ai-platform models create my-model --region us-central1
gcloud ai-platform versions create my-version --model my-model --region us-central1

Sources