GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Return different matrix types for online serving · Issue #4714 · feast-dev/feast

Return different matrix types for online serving #4714

New issue
Copy link
New issue
Copy link
Closed
1 / 11 of 1 issue completed
Closed
Return different matrix types for online serving#4714
1 / 11 of 1 issue completed
Copy link
Assignees
franciscojavierarceo
Labels
kind/featureNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on

Description

@franciscojavierarceo
franciscojavierarceo
opened on Oct 29, 2024
Issue body actions

Is your feature request related to a problem? Please describe.
We should allow Feature Views to return matrices/tensors natively. For example, torch.tensors.

At the moment, for some features we require the client to serialize the output into a matrix before running inference. Feast should support executing these transformations and serializing the data into matrices for both online and offline retrieval.

Describe the solution you'd like

features: torch.Tensor =  store.get_online_features()

Describe alternatives you've considered
Not supporting this is the alternative, which is the current state, which leaves users to write their own brittle logic to handle various complexities.

Additional context
@HaoXuAI @tokoko I know we discussed sklearn pipelines in the past and I thought I'd share my thoughts.

Activity

  1. franciscojavierarceo
    added
    kind/featureNew feature or requestNew feature or request
    on Oct 29, 2024
  2. haoxu0 commented on Oct 29, 2024

    @haoxu0
    haoxu0
    on Oct 29, 2024
    Collaborator
    More actions

    torch feature is nice. I guess we need to release the "timestamp" constraints in our APIs, since it probably doesn't make too much sense to attach embedding feature with a timestamp?

    Reacted by Francisco Javier Arceo
  3. breno-costa commented on Oct 29, 2024

    @breno-costa
    breno-costa
    on Oct 29, 2024
    Contributor
    More actions

    The method store.get_online_features(...) returns an OnlineResponse object that has some conversion methods like to_dict() and to_df(). Should this suggestion be implemented as an another conversion method like to_torch() or something like this?

  4. franciscojavierarceo commented on Oct 29, 2024

    @franciscojavierarceo
    franciscojavierarceo
    on Oct 29, 2024
    MemberAuthor
    More actions

    torch feature is nice. I guess we need to release the "timestamp" constraints in our APIs, since it probably doesn't make too much sense to attach embedding feature with a timestamp?
    Agreed.

  5. franciscojavierarceo commented on Oct 29, 2024

    @franciscojavierarceo
    franciscojavierarceo
    on Oct 29, 2024
    MemberAuthor
    More actions

    @breno-costa that code is a serialization step though. We would want to treat Torch Tensors (or xgb.DMatrix) as a first class data type.

    The concrete examples I'm thinking of are one hot encoding or impact encoding. It'd be useful for us to handle this for MLEs natively, especially when handling unseen categories.

  6. dandawg commented on Oct 29, 2024

    @dandawg
    dandawg
    on Oct 29, 2024
    Contributor
    More actions

    This plus sparse tensors/sparse matrices could be a really cool optimization -- less data, faster io, more powerful API.

  7. franciscojavierarceo commented on Oct 29, 2024

    @franciscojavierarceo
    franciscojavierarceo
    on Oct 29, 2024
    MemberAuthor
    More actions

    This plus sparse tensors/sparse matrices could be a really cool optimization -- less data, faster io, more powerful API.

    Exactly.

  8. haoxu0 commented on Oct 29, 2024

    @haoxu0
    haoxu0
    on Oct 29, 2024
    Collaborator
    More actions

    if we can leverage "arrow" as our primary format, then it can be directly converted to pandas/torch with arrow apis i believe

    Reacted by Francisco Javier Arceo
  9. franciscojavierarceo commented on Oct 30, 2024

    @franciscojavierarceo
    franciscojavierarceo
    on Oct 30, 2024
    MemberAuthor
    More actions

    Cool, I'll check that out. This is basically the next step after vector support to making NLP a first class citizen.

  10. franciscojavierarceo
    self-assigned this
    on Nov 8, 2024
  11. franciscojavierarceo
    added a parent issue on Mar 4, 2025
    • Add torch.Tensor as option for online and offline retrieval #4890
  12. franciscojavierarceo
    removed a parent issue on Mar 4, 2025
    • Add torch.Tensor as option for online and offline retrieval #4890
  13. franciscojavierarceo
    added a sub-issue on Mar 4, 2025
    • Add torch.Tensor as option for online and offline retrieval #4890
  14. franciscojavierarceo
    added a parent issue on Mar 4, 2025
    • Introduce Feast NLP/LLM Add-On #4964
  15. stale commented on Apr 26, 2025

    @stale
    staleBot
    on Apr 26, 2025 – with Stale
    More actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  16. stale
    added
    wontfixThis will not be worked onThis will not be worked on
    on Apr 26, 2025
  17. stale
    closed this as completedon May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @franciscojavierarceo
    franciscojavierarceo

Labels

kind/featureNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.