Giter VIP home page Giter VIP logo

c3po-model-server's People

Contributors

al25551 avatar dygwon avatar emiliecowen avatar erob123 avatar lkshing avatar lshinggg avatar markhoward7 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

erob123

c3po-model-server's Issues

Build Minio error objects

Used in Minio storage api within app to express errors. extend from root AppError object.

MinioSaveError:
{ model_type, sha, time, ...rest of error }

MinioLoadError:
{ model_type, sha, time, ...rest of error }

Decide on P1 pipeline architecture(s) moving forward

Currently we have 2 pipelines, but the possibility of a 3rd if we convert the streamlit app UI to another pipeline.
How do we want to restructure the architectures?
Decide on the following:

  • What will each pipeline be used for?
  • Components/applications that should be included in each pipeline

update mattermost DB schema (fields needed for future research)

Field Name Research task using this Other info Implemented
ID Chat disentanglement   mattermost_document.message_id
create_at Chat disentanglement, Topics   document.original_created_time
root_id Chat disentanglement   mattermost_document.root_message_id
message Chat disentanglement, Topics, Stress   mattermost_document.document (UUID) -> document.text
user_id N/A Nice to have mattermost_document.user (UUID) -> mattermost_user.user_id
channel_id (Future) Chat disentanglement, (Future) Topics Nice to have mattermost_document.channel (UUID) -> mattermost_channel.channel_id

Adjust Mock Setup in weak learner upload

While the current implementation works, it does risk erroring out if the underlying upload_file_to_minio implementation changes. Recommend adjusting to follow the mock pattern in the remainder of the same module. Specifically, adjust the following lines in test_upload_bertopic_embedding_pretrained_weak_learner_object_post_valid_request to directly patch the upload call:

    # Dump the object to the file object
    file_obj = io.BytesIO()
    pickle.dump(weak_learner_model_obj, file_obj)
    file_obj.seek(0)

    # Upload the file to the BERTopic Embedding Pretrained Model object
    response2 = client.post(
        f"/aimodels/bertopic/bertopic-embedding-pretrained/{embedding_pretrained_id}/upload/", files={"new_file": file_obj})

    os.remove(test_file)

Build integration with 581st for query retrieval **SAVE FOR LINKS**

How to do in P1
Brett Ostwalt commented:

Eric Robinson (AIA | 21 AS) alright connectivity should be working now.

in order to call the NITMRE services, the addresses are:

http://mattermost.nitmre:8065
http://nitmre-cpd.nitmre
If NITMRE is calling anything for transformers, the address is:

http://c3po-model-server.transformers
there should be less header information in general, but something that may be relevant is:

'x-forwarded-client-cert', 'By=spiffe://cluster.local/ns/nitmre/sa/default;Hash=;Subject="";URI=spiffe://cluster.local/ns/transformers/sa/default'
That is a call from transformers to nitmre so I imagine if it went the other way, then the spiffe values would be reversed


How to do locally

I just added a bunch of instructions to the readme in gitlab: https://code.il4.dso.mil/platform-one/products/581-swes/nitmre/nitmre-cpd/-/tree/master?ref_type=heads#run-locally-via-docker-compose

You should be able to build the docker image with nothing but docker installed. Alternatively, you can skip trying to build yourself and just change the provided sample docker compose (standalone-docker-compose.yml) to pull the latest image from P1 gitlab, the image url would be: registry.il4.dso.mil/platform-one/products/581-swes/nitmre/nitmre-cpd, I think you may have to lookup and specify the current tag (IIRC P1 does not allow using :latest).

David Milligan


Links for using AFRL tool
Hi Eric,

Here is the link to the ATICA code repository. Your user accounts were created.

https://github.rpi.edu/LACAI/ATICAv3

IntrucTOD llama2: https://drive.google.com/file/d/1OLlvpNiMO_MMx586_yfdZZXyAZUfor-Z/view?usp=sharing_eil_m&ts=64ca8ce8

Add sentence-transformers all mini and mpnet to staging init

all mini:

{
  "sha256": "178d15cd14cfa17b445cdb3f98815f6875be34c84f0cd2997cf51455abc7680d",
  "model_type": "sentence_transformers",
  "model_name": "all-MiniLM-L6-v2",
  "id": "9edf2ea6-cac0-4665-9b9a-3224e6e5d4f2",
  "uploaded": true,
  "version": 1,
  "originated_from": "app"
}

need to upload mpnet and add here too

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.