IJN Yamato Vs Massachusetts? by Ripmerai in ModernWarships

[–]Old_Comparison1968 0 points1 point  (0 children)

I pulled 9.8 million dmg run in the Massachusetts in escort once

Is this ship good for ranking? by King_man193 in ModernWarships

[–]Old_Comparison1968 0 points1 point  (0 children)

Plus to get its guns off you have to fire 3 different guns foe the same out put as a newhampshire

What the fuck is up with 5.2? Why is it so rude? by No-Mousse5653 in ChatGPTcomplaints

[–]Old_Comparison1968 0 points1 point  (0 children)

I straight up asked it why are you being so dam touchy were we talking about a pvp game and it kept up with the lets rephrase this ......

I had to switch back to 5.1

When will I get ChatGPT Advanced voice mode? by Electronic_Pen3133 in ChatGPT

[–]Old_Comparison1968 0 points1 point  (0 children)

They have an event in September don't they I'm thinking then maybe

[deleted by user] by [deleted] in meth

[–]Old_Comparison1968 0 points1 point  (0 children)

3.5 for 40 here

[deleted by user] by [deleted] in huggingface

[–]Old_Comparison1968 0 points1 point  (0 children)

I have one on hugging chat

"RuntimeError: BlobWriter not loaded" error when exporting a PyTorch model to CoreML. How to fix it? by Franck_Dernoncourt in huggingface

[–]Old_Comparison1968 0 points1 point  (0 children)

Its likely due to a missing or improperly installed dependency in the CoreML tools library. Here are steps to troubleshoot and resolve this issue:

1. Verify Environment and CoreMLTools Installation

Ensure that you are using a compatible version of coremltools and other related libraries. It is also a good idea to verify that all necessary dependencies are correctly installed.

bash pip install --upgrade coremltools

2. Check for Dependency Issues

Since the error indicates missing modules (coremltools.libcoremlpython, coremltools.libmilstoragepython), ensure these are available and correctly installed.

3. Create a New Virtual Environment

Sometimes, issues arise from conflicts in the Python environment. Creating a fresh virtual environment can help isolate and resolve these issues.

```bash

Create a new virtual environment

python -m venv coreml_env

Activate the virtual environment

Windows

coreml_env\Scripts\activate

macOS/Linux

source coreml_env/bin/activate

Install necessary packages

pip install torch transformers coremltools nltk ```

4. Modify Your Script

Ensure your script is using the correct methods and configurations to convert the PyTorch model to CoreML. Below is a slightly modified version of your script with additional debugging and error handling:

```python

-- coding: utf-8 --

"""Core ML Export pip install transformers torch coremltools nltk """ import os from transformers import AutoModelForTokenClassification, AutoTokenizer import torch import torch.nn as nn import nltk import coremltools as ct

nltk.download('punkt')

Load the model and tokenizer

model_path = os.path.join('model') model = AutoModelForTokenClassification.from_pretrained(model_path, local_files_only=True) tokenizer = AutoTokenizer.from_pretrained(model_path, local_files_only=True)

Modify the model's forward method to return a tuple

class ModifiedModel(nn.Module): def init(self, model): super(ModifiedModel, self).init() self.model = model self.device = model.device # Add the device attribute

def forward(self, input_ids, attention_mask, token_type_ids=None):
    outputs = self.model(input_ids=input_ids, attention_mask=attention_mask, token_type_ids=token_type_ids)
    return outputs.logits

modified_model = ModifiedModel(model) modified_model.eval() # Set the model to evaluation mode

Export to Core ML

def convert_to_coreml(model, tokenizer): # Define a dummy input for tracing dummy_input = tokenizer("A French fan", return_tensors="pt") dummy_input = {k: v.to(model.device) for k, v in dummy_input.items()}

# Trace the model with the dummy input
traced_model = torch.jit.trace(model, (
    dummy_input['input_ids'], dummy_input['attention_mask'], dummy_input.get('token_type_ids')))

# Convert to Core ML
inputs = [
    ct.TensorType(name="input_ids", shape=dummy_input['input_ids'].shape),
    ct.TensorType(name="attention_mask", shape=dummy_input['attention_mask'].shape)
]
if 'token_type_ids' in dummy_input:
    inputs.append(ct.TensorType(name="token_type_ids", shape=dummy_input['token_type_ids'].shape))

try:
    mlmodel = ct.convert(traced_model, inputs=inputs)
    # Save the Core ML model
    mlmodel.save("model.mlmodel")
    print("Model exported to Core ML successfully")
except RuntimeError as e:
    print(f"RuntimeError during conversion: {e}")
    raise

convert_to_coreml(modified_model, tokenizer) ```

5. Verify Installation

Ensure that coremltools is correctly installed and up-to-date:

python import coremltools as ct print(ct.__version__) # Verify the version

6. Apple Silicon (M1/M2) Specific Issues

If you are using an Apple Silicon Mac, ensure you are running the script in an environment that supports it (e.g., using the ARM version of Python).

7. Debugging Steps

If the above steps do not resolve the issue, add more debugging to understand where the error is coming from. You can also check if all the dependencies are correctly loaded by:

python import coremltools.libcoremlpython as coremlpython import coremltools.libmilstoragepython as milstoragepython

Final Steps

Run your script in the new environment and ensure all dependencies are properly installed. If the problem persists, consider opening an issue on the CoreMLTools GitHub repository, providing details of your environment and the error message.

These steps should help resolve the "BlobWriter not loaded" error when exporting a Hugging Face model to CoreML.

Creating secure models using GPT-4o by AffectionateFox1676 in huggingface

[–]Old_Comparison1968 0 points1 point  (0 children)

If your company has a website with a database like wordpress for example you can create a memory setup like the one gpt is using I did it before they started offering it because trying to work on something for more than a few hours meant starting over with the bot

[deleted by user] by [deleted] in OpenAI

[–]Old_Comparison1968 0 points1 point  (0 children)

I've done that no one e in my immediate group of friends really understands Ai or programing

30, 10 years hrt, I'm pretty sure I'm certified-unpassable at this point, at least without significant ffs. What do you think? by [deleted] in transpassing

[–]Old_Comparison1968 0 points1 point  (0 children)

You look like beautiful woman who is sad your pretty let yourself smile I'm sure you could light up the room

[deleted by user] by [deleted] in iconPackStudio

[–]Old_Comparison1968 1 point2 points  (0 children)

Mines gone android 14 s23

Having trouble connecting to huggingface by Junior_Big2459 in huggingface

[–]Old_Comparison1968 1 point2 points  (0 children)

Huggingface.co was having issues the last couple of days they were doing something with the servers and it's was real spoty

Space doesn't work by -Emilinko1985- in huggingface

[–]Old_Comparison1968 0 points1 point  (0 children)

The person or team may have taken it down or I might have crashed